Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Use --git-dir parameter instead of setting $ENV{'GIT_DIR'}
[gitweb.git]
/
builtin-repo-config.c
diff --git
a/builtin-repo-config.c
b/builtin-repo-config.c
index c4164802081e03c8061f77498e08dd2ca8501af7..6560cf1c2dd04a1ef047767a69a68bac794d7187 100644
(file)
--- a/
builtin-repo-config.c
+++ b/
builtin-repo-config.c
@@
-122,10
+122,8
@@
static int get_value(const char* key_, const char* regex_)
ret = (seen == 1) ? 0 : 1;
free_strings:
- if (repo_config)
- free(repo_config);
- if (global)
- free(global);
+ free(repo_config);
+ free(global);
return ret;
}