From: Sangyoon Jang Date: Wed, 7 Dec 2016 11:28:58 +0000 (+0900) Subject: Fix build warning X-Git-Tag: submit/tizen_3.0/20161209.072525~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F103165%2F2;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix build warning Initialize local variable. (-Wmaybe-uninitialized) Change-Id: I70a8b197feb56924d87d1881e79431feac97150c Signed-off-by: Sangyoon Jang --- diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index 6894306..f3d8ff5 100644 --- a/client/src/pkgmgr.c +++ b/client/src/pkgmgr.c @@ -454,7 +454,7 @@ API int pkgmgr_client_usr_install(pkgmgr_client *pc, const char *pkg_type, GVariantBuilder *builder = NULL; GVariant *args = NULL; struct pkgmgr_client_t *client = (struct pkgmgr_client_t *)pc; - char *pkgtype; + char *pkgtype = NULL; struct cb_info *cb_info; if (pc == NULL || pkg_path == NULL) { @@ -610,7 +610,7 @@ API int pkgmgr_client_usr_mount_install(pkgmgr_client *pc, const char *pkg_type, GVariantBuilder *builder = NULL; GVariant *args = NULL; struct pkgmgr_client_t *client = (struct pkgmgr_client_t *)pc; - char *pkgtype; + char *pkgtype = NULL; struct cb_info *cb_info; if (pc == NULL || pkg_path == NULL) {