summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaeho Lee <jaeho81.lee@samsung.com>2013-01-22 20:43:32 +0900
committerJaeho Lee <jaeho81.lee@samsung.com>2013-01-22 20:43:32 +0900
commitb400b3da6c21a9f18365d01d60f948470845b161 (patch)
treee5bda142313c12279f90b76e6c9837f2d5fc819f /src
parent7e8855f221376737a27495dc69a50f1882c762e6 (diff)
downloadapp-svc-b400b3da6c21a9f18365d01d60f948470845b161.tar.gz
app-svc-b400b3da6c21a9f18365d01d60f948470845b161.tar.bz2
app-svc-b400b3da6c21a9f18365d01d60f948470845b161.zip
fixed bug - crash in emulator
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/appsvc.c2
-rwxr-xr-xsrc/appsvc_db.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/appsvc.c b/src/appsvc.c
index 37fabb8..db1d4da 100755
--- a/src/appsvc.c
+++ b/src/appsvc.c
@@ -549,7 +549,7 @@ static int __get_list_with_category(char *category, GSList **pkg_list)
{
int ret;
pkgmgrinfo_appinfo_filter_h handle;
- GSList *app_list;
+ GSList *app_list = NULL;
GSList *iter = NULL;
char *list_item = NULL;
int match;
diff --git a/src/appsvc_db.c b/src/appsvc_db.c
index 800e644..b523441 100755
--- a/src/appsvc_db.c
+++ b/src/appsvc_db.c
@@ -75,7 +75,8 @@ err:
static int __collate_appsvc(void *ucol, int str1_len, const void *str1, int str2_len, const void *str2)
{
- char *saveptr1, *saveptr2;
+ char *saveptr1 = NULL;
+ char *saveptr2 = NULL;
char *dup_str1;
char *dup_str2;
char *token;