From 3736fdffbf105b2c76e48fbdc418f79341433e7e Mon Sep 17 00:00:00 2001 From: "manish.r" Date: Fri, 27 Jul 2018 13:39:50 +0530 Subject: [PATCH] modifying null check in plugin app install Change-Id: I6c6c41c8733865537f0a863adda8aa154f4ccb15 Signed-off-by: manish.r --- src/default_plugin_appcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/default_plugin_appcmd.c 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); -- 2.34.1