metadata can get the null value
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 1 Apr 2013 01:24:24 +0000 (10:24 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 1 Apr 2013 01:24:24 +0000 (10:24 +0900)
Change-Id: Id6f0ed0b9f9cdd4da53efe799de36d0dd93c6f51
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
packaging/pkgmgr-info.spec
parser/pkgmgr_parser_db.c

index b941d93..3ab9221 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       pkgmgr-info
 Summary:    Packager Manager infomation api for package
-Version:    0.0.91
+Version:    0.0.92
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index 8b6dbc8..3ccf12a 100755 (executable)
@@ -1062,7 +1062,7 @@ static int __insert_uiapplication_appmetadata_info(manifest_x *mfx)
                md = up->metadata;
                while (md != NULL)
                {
-                       if (md->key && md->value) {
+                       if (md->key) {
                                snprintf(query, MAX_QUERY_LEN,
                                        "insert into package_app_app_metadata(app_id, md_key, md_value) " \
                                        "values('%s','%s', '%s')",\
@@ -1394,7 +1394,7 @@ static int __insert_serviceapplication_appmetadata_info(manifest_x *mfx)
                md = sp->metadata;
                while (md != NULL)
                {
-                       if (md->key && md->value) {
+                       if (md->key) {
                                snprintf(query, MAX_QUERY_LEN,
                                        "insert into package_app_app_metadata(app_id, md_key, md_value) " \
                                        "values('%s','%s', '%s')",\