commit, cherry-pick -s: remove broken support for multiline rfc2822 fields
[gitweb.git] / config.c
index fff8a43bc0378d7d7ee6d7ab3deee228c87b1d5c..fb3f8681eed21ee81cfe36296c438ed135b98485 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1279,6 +1279,7 @@ int git_config_parse_key(const char *key, char **store_key, int *baselen_)
 
 out_free_ret_1:
        free(*store_key);
+       *store_key = NULL;
        return -CONFIG_INVALID_KEY;
 }