fix hilarious crash startups when using enlightenment_start

SVN revision: 76415
This commit is contained in:
Mike Blumenkrantz 2012-09-10 15:30:48 +00:00
parent ca107c609c
commit f8e5e23135
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ _env_path_prepend(const char *env, const char *path)
strcat(s, p2);
strcat(s, ":");
}
strcat(s, p);
if (p) strcat(s, p);
env_set(env, s);
free(s);
}
@ -254,7 +254,7 @@ _env_path_append(const char *env, const char *path)
if (s)
{
s[0] = 0;
strcat(s, p);
if (p) strcat(s, p);
if (p2)
{
strcat(s, ":");