Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin-checkout.c: fix possible usage segfault
[gitweb.git]
/
builtin-checkout.c
diff --git
a/builtin-checkout.c
b/builtin-checkout.c
index 9370ba07b452ba883cdbd75a64a1c67b23079854..0d19835a6b9e8d52574531c0453eff91f47b8e8d 100644
(file)
--- a/
builtin-checkout.c
+++ b/
builtin-checkout.c
@@
-545,6
+545,7
@@
int cmd_checkout(int argc, const char **argv, const char *prefix)
OPT_BOOLEAN( 0 , "track", &opts.track, "track"),
OPT_BOOLEAN('f', NULL, &opts.force, "force"),
OPT_BOOLEAN('m', NULL, &opts.merge, "merge"),
+ OPT_END(),
};
memset(&opts, 0, sizeof(opts));