From dbd338626489d817a688f6097c569e8c4d808ae0 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 7 Dec 2016 20:28:58 +0900 Subject: [PATCH] Fix build warning Initialize local variable. (-Wmaybe-uninitialized) Change-Id: I70a8b197feb56924d87d1881e79431feac97150c Signed-off-by: Sangyoon Jang --- client/src/pkgmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.34.1