@matheusbsbs / matheus-bagliano / commits / cc1816b0d6
Fork 0

archive-tar.c: guard config parser from value=NULL

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 8, 2008 at 20:38 UTC cc1816b0d64a2aa3d6c32d642c3b403f8625c484
1 file changed +1 -1
archive-tar.c
+1 -1
@@ -222,7 +222,7 @@ static void write_global_extended_header(const unsigned char *sha1)
222 static int git_tar_config(const char *var, const char *value)
223 {
224 if (!strcmp(var, "tar.umask")) {
225 - if (!strcmp(value, "user")) {
225 + if (value && !strcmp(value, "user")) {
226 tar_umask = umask(0);
227 umask(tar_umask);
228 } else {