diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-08 20:38:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:36 -0800 |
commit | cc1816b0d64a2aa3d6c32d642c3b403f8625c484 (patch) | |
tree | 9294e271fa9b17f8831ef03ad7a042ffe0fd386c | |
parent | b26768e25685b4f575ae07a38e5180b9879bd01e (diff) | |
download | git-cc1816b0d64a2aa3d6c32d642c3b403f8625c484.tar.gz git-cc1816b0d64a2aa3d6c32d642c3b403f8625c484.tar.xz |
archive-tar.c: guard config parser from value=NULL
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | archive-tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |