projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1ddc5
)
shell.c: complain on insufficient arguments.
author
Junio C Hamano
<junkio@cox.net>
Sat, 26 Nov 2005 04:57:02 +0000
(20:57 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 26 Nov 2005 04:57:02 +0000
(20:57 -0800)
Originally noticed by Tommi Virtanen, but done slightly differently.
Signed-off-by: Junio C Hamano <junkio@cox.net>
shell.c
patch
|
blob
|
history
diff --git
a/shell.c
b/shell.c
index
2c4789e
..
cd31618
100644
(file)
--- 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;