Fix build error
[platform/core/appfw/app-installers.git] / src / common / plugins / metadata_plugin.cc
index cf2952a..c92b187 100644 (file)
@@ -33,7 +33,7 @@ GList* GetMetadataListForKey(GList* list, const std::string& key) {
   GList* md_list = nullptr;
   for (metadata_x* meta : GListRange<metadata_x*>(list)) {
     // key and val should not be null (at least empty string)
-    if (!meta->key || !meta->val) {
+    if (!meta->key || !meta->value) {
       LOG(ERROR) << "Metadata key or val is null";
       continue;
     }