[Tizen] Fix wrong condition checking
authorMaciej Piotrowski <m.piotrowski@samsung.com>
Fri, 9 Jan 2015 14:34:16 +0000 (15:34 +0100)
committerMaciej Piotrowski <m.piotrowski@samsung.com>
Mon, 12 Jan 2015 16:07:36 +0000 (17:07 +0100)
In function ContentInstance::HandleSyncMessage there is wrong
condition check, which is always true.

src/content/content_instance.cc

index 78d02e0..ab937d5 100644 (file)
@@ -163,7 +163,7 @@ void ContentInstance::HandleSyncMessage(const char* message) {
     rc = media_content_set_db_updated_cb(MediaContentChangeCallback, this);
   } else if (cmd == "ContentManager.unsetChangeListener") {
     rc = media_content_unset_db_updated_cb();
-  } else if ("ContentManager.update") {
+  } else if (cmd == "ContentManager.update") {
     if (HandleUpdateRequest(v.get("content")))
       rc = MEDIA_CONTENT_ERROR_NONE;
   } else {