forked from enlightenment/enlightenment
don't crash when env var not set on startup
SVN revision: 73907
This commit is contained in:
parent
cca3979f86
commit
722b65cebf
|
@ -158,7 +158,8 @@ _env_path_append(const char *env, const char *path)
|
||||||
int len = 0, len2 = 0;
|
int len = 0, len2 = 0;
|
||||||
|
|
||||||
p = getenv(env);
|
p = getenv(env);
|
||||||
if (p) len = strlen(p);
|
if (!p) return;
|
||||||
|
len = strlen(p);
|
||||||
p2 = (char *)path;
|
p2 = (char *)path;
|
||||||
if (p2) len2 = strlen(p2);
|
if (p2) len2 = strlen(p2);
|
||||||
if (p && p2)
|
if (p && p2)
|
||||||
|
|
Loading…
Reference in New Issue