This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Only use the environment variable when it is not empty
master
sin
9 years ago
parent
b77477d377
commit
16109053f5
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 *
Write
Preview
Loading…
Cancel
Save