summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2016-06-01 17:38:19 +0900
committerSemun Lee <sm79.lee@samsung.com>2016-06-01 17:38:19 +0900
commit352bdf43ea733c0784a28b631eecc98cb45f7733 (patch)
treec226f5b6e2abb4a5e2a7c03e9ddf172897aa7ad4
parent4a749ead2bec4b625f1f033f0919de06623cd92b (diff)
downloadlaunchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.tar.gz
launchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.tar.bz2
launchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.zip
We set argv to be very long (1024) to contain cmdline of launched app in launchpad-loaders. When loader_extra is null the long argv is not set properly and the launchpad app's environment variables might be corrupted. Change-Id: I96381f0caa5b66a25873c66c543ecec1e2612460 Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rwxr-xr-xsrc/launchpad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/launchpad.c b/src/launchpad.c
index 54ac4e3..cd5abed 100755
--- a/src/launchpad.c
+++ b/src/launchpad.c
@@ -1138,7 +1138,7 @@ static candidate_process_context_t *__add_slot(int type, int loader_id,
cpc->source = 0;
cpc->timer = 0;
cpc->loader_path = strdup(loader_path);
- cpc->loader_extra = loader_extra ? strdup(loader_extra) : NULL;
+ cpc->loader_extra = loader_extra ? strdup(loader_extra) : strdup("");
cpc->detection_method = detection_method;
cpc->timeout_val = timeout_val;