summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79a1e6b)
raw | patch | inline | side by side (parent: 79a1e6b)
author | Jay Soffian <jaysoffian@gmail.com> | |
Mon, 18 Feb 2008 10:20:20 +0000 (05:20 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 19 Feb 2008 03:19:06 +0000 (19:19 -0800) |
Not terminating the options[] array with OPT_END can cause
usage ("git checkout -h") output to segfault.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
usage ("git checkout -h") output to segfault.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | patch | blob | history |
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 9370ba07b452ba883cdbd75a64a1c67b23079854..0d19835a6b9e8d52574531c0453eff91f47b8e8d 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
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));