OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26768e
)
archive-tar.c: guard config parser from value=NULL
author
Junio C Hamano
<gitster@pobox.com>
Sat, 9 Feb 2008 04:38:22 +0000
(20:38 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Feb 2008 21:11:36 +0000
(13:11 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c
patch
|
blob
|
history
diff --git
a/archive-tar.c
b/archive-tar.c
index
e1bced5
..
30aa2e2
100644
(file)
--- 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 {