config: set help text for --bool-or-int
The conversion to parse_opt left this as NULL; on glibc systems, the usage message prints --bool-or-int (null) and on other ones, segfaults. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Mar 7, 2009 at 12:14 UTC
ba048224685e661a4cf4736dcffab5fc60cbc70b
1 file changed
+1
-1
builtin-config.c
+1
-1
@@ -68,7 +68,7 @@ static struct option builtin_config_options[] = {
68
OPT_GROUP("Type"),
69
OPT_BIT(0, "bool", &types, "value is \"true\" or \"false\"", TYPE_BOOL),
70
OPT_BIT(0, "int", &types, "value is decimal number", TYPE_INT),
71
- OPT_BIT(0, "bool-or-int", &types, NULL, TYPE_BOOL_OR_INT),
71
+ OPT_BIT(0, "bool-or-int", &types, "value is --bool or --int", TYPE_BOOL_OR_INT),
72
OPT_GROUP("Other"),
73
OPT_BOOLEAN('z', "null", &end_null, "terminate values with NUL byte"),
74
OPT_END(),