From: Junio C Hamano Date: Sat, 9 Feb 2008 04:38:22 +0000 (-0800) Subject: archive-tar.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~51 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc1816b0d64a2aa3d6c32d642c3b403f8625c484;p=git.git archive-tar.c: guard config parser from value=NULL Signed-off-by: Junio C Hamano --- 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 {