From: junsuk77.oh Date: Mon, 1 Apr 2013 01:24:24 +0000 (+0900) Subject: metadata can get the null value X-Git-Tag: 2.1b_release~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=0863a41b5a0336db9a654df6ab6c21bf80e16e7b;p=framework%2Fappfw%2Fpkgmgr-info.git metadata can get the null value Change-Id: Id6f0ed0b9f9cdd4da53efe799de36d0dd93c6f51 Signed-off-by: junsuk77.oh --- diff --git a/packaging/pkgmgr-info.spec b/packaging/pkgmgr-info.spec index b941d93..3ab9221 100755 --- a/packaging/pkgmgr-info.spec +++ b/packaging/pkgmgr-info.spec @@ -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 diff --git a/parser/pkgmgr_parser_db.c b/parser/pkgmgr_parser_db.c index 8b6dbc8..3ccf12a 100755 --- a/parser/pkgmgr_parser_db.c +++ b/parser/pkgmgr_parser_db.c @@ -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')",\