Declare var at top of block

This commit is contained in:
sin 2015-11-26 13:42:41 +00:00
parent d1ed0cff11
commit 7ceda4f7d2

View file

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