aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2015-11-26 15:10:12 +0000
committersin <sin@2f30.org>2015-11-26 15:10:12 +0000
commit16109053f59a944f75b3aab947bccea103974759 (patch)
tree1e87cfe7f8035d2a13d122d9b423189f2c1db529 /noice.c
parentb77477d3777bc6ebd43875cd3e9b68d44cdb1bd3 (diff)
downloadnoice-16109053f59a944f75b3aab947bccea103974759.tar.gz
Only use the environment variable when it is not empty
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 54a9455..dda028c 100644
--- a/noice.c
+++ b/noice.c
@@ -203,7 +203,7 @@ xgetenv(char *name, char *fallback)
if (name == NULL)
return fallback;
value = getenv(name);
- return value ? value : fallback;
+ return value && value[0] ? value : fallback;
}
char *
Un proyecto texto-plano.xyz