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 | Work around curl-gnutls not liking to be reinitialized (diff) | |
download | tgif-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 e1bced5609..30aa2e23fd 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 { |