Browse Source

Only use the environment variable when it is not empty

master
sin 9 years ago
parent
commit
16109053f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c View File

@@ -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 *


Loading…
Cancel
Save