X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=shell.c;h=cd316185e96c73c1f7d0e6309abe3241c2deb7c4;hb=1e80e0449248edb77b0fb9853f4a3404a599e207;hp=2c4789e944058c7dcab2deb5935a054691550d36;hpb=1301c6eb412e7c5511b952a12e42c70ad56f028b;p=git.git diff --git a/shell.c b/shell.c index 2c4789e9..cd316185 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;