From b400b3da6c21a9f18365d01d60f948470845b161 Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Tue, 22 Jan 2013 20:43:32 +0900 Subject: [PATCH] fixed bug - crash in emulator Signed-off-by: Jaeho Lee --- packaging/app-svc.spec | 2 +- src/appsvc.c | 2 +- src/appsvc_db.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/app-svc.spec b/packaging/app-svc.spec index 31e60a1..ab21033 100644 --- a/packaging/app-svc.spec +++ b/packaging/app-svc.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/a/app-svc app-svc 0.1.19 de68cdc468eaded317b4f5be9cdafebb01639aa0 Name: app-svc Summary: App svc -Version: 0.1.41 +Version: 0.1.42 Release: 1 Group: System/Libraries License: Apache License, Version 2.0 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; -- 2.7.4