E_Exec_Launch *launch;
Eina_List *l, *lnew;
Ecore_Exe *exe = NULL;
- char *penv_display;
+ const char *penv_display;
char buf[4096];
launch = data;
if (++startup_id < 1) startup_id = 1;
/* save previous env vars we need to save */
penv_display = getenv("DISPLAY");
- if (penv_display) penv_display = strdup(penv_display);
if ((penv_display) && (launch->zone))
{
const char *p1, *p2;
if (penv_display_length + 32 > 4096)
{
free(inst);
- free(penv_display);
return NULL;
}
}
if (penv_display)
- {
- e_util_env_set("DISPLAY", penv_display);
- free(penv_display);
- }
+ e_util_env_set("DISPLAY", penv_display);
if (!exe)
{
free(inst);