Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t3404: fix typo
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index 47b2ce1d5a753f11bb1876e709e6a7324aa47e54..10b5c957ae714e850c9029ac23f88be407db3173 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-162,7
+162,7
@@
void git_config_push_parameter(const char *text)
{
struct strbuf env = STRBUF_INIT;
const char *old = getenv(CONFIG_DATA_ENVIRONMENT);
- if (old) {
+ if (old
&& *old
) {
strbuf_addstr(&env, old);
strbuf_addch(&env, ' ');
}