DORMANTno replies

[PATCH] archive-tar.c: guard config parser from value=NULL

From: Govind Salinas <hidden>
Date: 2016-06-15 22:44:12
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Govind Salinas <redacted>
---
 archive-tar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/archive-tar.c b/archive-tar.c
index e1bced5..30aa2e2 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 {
-- 
1.5.4.36.g9af61
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help