builtin/config.c: Fix a sparse warning
[gitweb.git] / builtin / config.c
index f881053cbbf6eec551aadf7280bc0e58717235ec..e796af4db6c533a936ecfc70d36e936a8fffa4bd 100644 (file)
@@ -165,7 +165,7 @@ static int collect_config(const char *key_, const char *value_, void *cb)
 static int get_value(const char *key_, const char *regex_)
 {
        int ret = CONFIG_GENERIC_ERROR;
-       struct strbuf_list values = {0};
+       struct strbuf_list values = {NULL};
        int i;
 
        if (use_key_regexp) {