From: manish.r Date: Fri, 27 Jul 2018 08:09:50 +0000 (+0530) Subject: modifying null check in plugin app install X-Git-Tag: submit/tizen/20180727.083824^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3736fdffbf105b2c76e48fbdc418f79341433e7e;p=sdk%2Ftarget%2Fsdbd.git modifying null check in plugin app install Change-Id: I6c6c41c8733865537f0a863adda8aa154f4ccb15 Signed-off-by: manish.r --- diff --git a/src/default_plugin_appcmd.c b/src/default_plugin_appcmd.c old mode 100644 new mode 100755 index 78b2b4f..1c7204d --- a/src/default_plugin_appcmd.c +++ b/src/default_plugin_appcmd.c @@ -81,8 +81,8 @@ static int appcmd_install_gen_shellcmd(appcmd_info* p_info) { if (type != NULL && pkgpath != NULL && pkgid != NULL && teppath != NULL) { D("args: type=%s, pkgpath=%s, pkgid=%s, teppath=%s\n", type, pkgpath, pkgid, teppath); - if (strncmp(pkgid, "null", 4) == 0) { - if (strncmp(teppath, "null", 4) == 0) { + if (strncmp(pkgid, "\\n\\u\\l\\l", 8) == 0) { + if (strncmp(teppath, "\\n\\u\\l\\l", 8) == 0) { /* Normal install case */ snprintf(buf, len, "pkgcmd -i -q -t %s -p %s -G", type, pkgpath); } else { @@ -93,7 +93,7 @@ static int appcmd_install_gen_shellcmd(appcmd_info* p_info) { /* Re-install case */ snprintf(buf, len, "pkgcmd -r -q -t %s -n %s", type, pkgid); } - + D("buf=%s\n", buf); free(type); free(pkgpath); free(pkgid);