|
@@ -198,12 +198,12 @@ spawn(const char *file, const char *arg, const char *dir) |
|
|
char * |
|
|
char * |
|
|
xgetenv(char *name, char *fallback) |
|
|
xgetenv(char *name, char *fallback) |
|
|
{ |
|
|
{ |
|
|
|
|
|
char *value; |
|
|
|
|
|
|
|
|
if (name == NULL) |
|
|
if (name == NULL) |
|
|
return fallback; |
|
|
return fallback; |
|
|
char *value = getenv(name); |
|
|
|
|
|
if (value) |
|
|
|
|
|
return value; |
|
|
|
|
|
return fallback; |
|
|
|
|
|
|
|
|
value = getenv(name); |
|
|
|
|
|
return value ? value : fallback; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
char * |
|
|
char * |
|
|