diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-26 05:57:02 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-26 05:57:02 +0100 |
commit | ab5f86275c070331c308a133afa3a648b347c062 (patch) | |
tree | f71945cb9fbc503ae348cb8a222f78683367681a /shell.c | |
parent | git-sh-setup: move the repository check to a core program. (diff) | |
download | git-ab5f86275c070331c308a133afa3a648b347c062.tar.xz git-ab5f86275c070331c308a133afa3a648b347c062.zip |
shell.c: complain on insufficient arguments.
Originally noticed by Tommi Virtanen, but done slightly differently.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'shell.c')
-rw-r--r-- | shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |