Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/ls-files-doc-markup-fix'
[gitweb.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index bf2037f6e1cc307ba04d817620b534697c3609c9..cb24f1aa8ae980a366f6f700db15b68064e1f926 100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-288,6
+288,8
@@
static enum parse_opt_result parse_long_opt(
optname(options, flags));
if (*rest)
continue;
+ if (options->value)
+ *(int *)options->value = options->defval;
p->out[p->cpidx++] = arg - 2;
return PARSE_OPT_DONE;
}