diff options
author | Semun Lee <sm79.lee@samsung.com> | 2016-06-01 17:38:19 +0900 |
---|---|---|
committer | Semun Lee <sm79.lee@samsung.com> | 2016-06-01 17:38:19 +0900 |
commit | 352bdf43ea733c0784a28b631eecc98cb45f7733 (patch) | |
tree | c226f5b6e2abb4a5e2a7c03e9ddf172897aa7ad4 | |
parent | 4a749ead2bec4b625f1f033f0919de06623cd92b (diff) | |
download | launchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.tar.gz launchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.tar.bz2 launchpad-352bdf43ea733c0784a28b631eecc98cb45f7733.zip |
Fix setting wrong argv for launchpad-loadersubmit/tizen/20160601.091452accepted/tizen/wearable/20160602.023050accepted/tizen/tv/20160602.022927accepted/tizen/mobile/20160602.023245accepted/tizen/ivi/20160602.023116accepted/tizen/common/20160601.134139
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-x | src/launchpad.c | 2 |
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; |