From cc1816b0d64a2aa3d6c32d642c3b403f8625c484 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 8 Feb 2008 20:38:22 -0800 Subject: [PATCH] archive-tar.c: guard config parser from value=NULL Signed-off-by: Junio C Hamano --- archive-tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive-tar.c b/archive-tar.c index e1bced560..30aa2e23f 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -222,7 +222,7 @@ static void write_global_extended_header(const unsigned char *sha1) static int git_tar_config(const char *var, const char *value) { if (!strcmp(var, "tar.umask")) { - if (!strcmp(value, "user")) { + if (value && !strcmp(value, "user")) { tar_umask = umask(0); umask(tar_umask); } else { -- 2.30.2