path: root/builtin/config.c
diff options
authorJunio C Hamano <>2013-08-09 04:41:44 (GMT)
committerJunio C Hamano <>2013-08-09 16:20:38 (GMT)
commit6667a6ac20747eb56eb2c03c39aceaf6aebbae3c (patch)
tree900e27b2629556db97b1c9bce892d2bb15b4b1c7 /builtin/config.c
parentd4770964d5058a679ebfc051acceb7968a831f84 (diff)
builtin/config.c: compilation fix
Do not feed a random string as the first parameter to die(); use "%s" as the format string instead. Do the same for test-urlmatch-normalization.c while saving a single pointer variable by turning a "const char *" constant string into "const char []", which is sufficient to squelch compilation warning (the compiler can see usage[] given to die() is a constant and will never have conversion specifiers that cause trouble). But for a good measure, give them the same "%s" treatment as well. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin/config.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/config.c b/builtin/config.c
index c046f54..ae199e9 100644
--- a/builtin/config.c
+++ b/builtin/config.c
@@ -404,7 +404,7 @@ static int get_urlmatch(const char *var, const char *url)
config.cb = &values;
if (!url_normalize(url, &config.url))
- die(config.url.err);
+ die("%s", config.url.err);
config.section = dup_downcase(var);
section_tail = strchr(config.section, '.');