git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 18, 2008, 10:20 UTC
Message-ID
<1203330020-7007-1-git-send-email-jaysoffian@gmail.com>
options was missing OPT_END
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
 builtin-checkout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
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
Message 1 of 1 in “builtin-checkout.c: fix usage segfault”
  1. builtin-checkout.c: fix usage segfaultJay Soffian, Feb 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.