threads / patch / 12171

patchbuiltin-checkout.c: fix usage segfault

Subject: [PATCH] builtin-checkout.c: fix usage segfault

## tl;dr

One message between Feb 18, 2008 and Feb 18, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jay Soffian· Feb 18, 2008, 10:20 UTC · lore
options was missing OPT_END
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
 builtin-checkout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Show changes to builtin-checkout.c +1 −0
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 9370ba0..0d19835 100644
--- 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));
-- 
1.5.4.2.183.g9fe5b

← back to recent threads