fixed bug - crash in emulator
authorJaeho Lee <jaeho81.lee@samsung.com>
Tue, 22 Jan 2013 11:43:32 +0000 (20:43 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Tue, 22 Jan 2013 11:43:32 +0000 (20:43 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
packaging/app-svc.spec
src/appsvc.c
src/appsvc_db.c

index 31e60a1..ab21033 100644 (file)
@@ -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
index 37fabb8..db1d4da 100755 (executable)
@@ -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;
index 800e644..b523441 100755 (executable)
@@ -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;