Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: Do not install a copy of 'git' in $(gitexecdir)
[gitweb.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index 987b0157192b9fe4c7451d94f5948bdbd7f524bb..71a7acf4e22bd12c0919f277410d6ec52dd5efc8 100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-22,7
+22,7
@@
static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt,
p->opt = NULL;
} else if (p->argc == 1 && (opt->flags & PARSE_OPT_LASTARG_DEFAULT)) {
*arg = (const char *)opt->defval;
- } else if (p->argc) {
+ } else if (p->argc
> 1
) {
p->argc--;
*arg = *++p->argv;
} else