noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 16109053f59a944f75b3aab947bccea103974759
parent b77477d3777bc6ebd43875cd3e9b68d44cdb1bd3
Author: sin <sin@2f30.org>
Date:   Thu, 26 Nov 2015 15:10:12 +0000

Only use the environment variable when it is not empty

Diffstat:
Mnoice.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 *