summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell.c b/shell.c
index 2c4789e944..cd316185e9 100644
--- a/shell.c
+++ b/shell.c
@@ -5,8 +5,7 @@ static int do_generic_cmd(const char *me, char *arg)
{
const char *my_argv[4];
- arg = sq_dequote(arg);
- if (!arg)
+ if (!arg || !(arg = sq_dequote(arg)))
die("bad argument");
my_argv[0] = me;