- the envp array of pointers must be terminated by a NULL pointer.
Change-Id: Ieb64b20c1fdf24aec16ae248faf051889ddb76d4
Signed-off-by: Kim Gunsoo <gunsoo83.kim@samsung.com>
char *value = NULL;
char *trim_value = NULL;
char path[PATH_MAX];
- memset(path, 0, sizeof(path));
char *envp[MAX_TOKENS];
int envp_cnt = 0;
+
+ memset(path, 0, sizeof(path));
+ memset(envp, 0, sizeof(envp));
+
envp[envp_cnt++] = strdup("TERM=linux");
envp[envp_cnt++] = strdup("DISPLAY=:0");