Fix svace issue 99/118199/3
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 9 Mar 2017 06:42:26 +0000 (15:42 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 9 Mar 2017 06:50:12 +0000 (15:50 +0900)
Change-Id: I9cd8895b4d75c3a1083ffcd8b4d987ff27251045

packaging/mused.spec
src/muse_core_module.c

index ada0312..a75a268 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A Multimedia Daemon in Tizen Native API
-Version:    0.1.55
+Version:    0.1.56
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 7319348..53ea9ee 100644 (file)
@@ -74,17 +74,16 @@ static gboolean _muse_core_module_dispatch_callback(gpointer data)
        LOGE("Restart muse server");
 
        if (module) {
-               LOGE("module[%p], pid[%d], api_module[%d], cmd[%d]",
-                       module, module->pid, module->api_module, module->last_cmd);
+               LOGE("module[%p], pid[%d], api_module[%d], cmd[%d]", module, module->pid, module->api_module, module->last_cmd);
+               if (muse_core_is_log_enabled()) {
+                       snprintf(client_buf, sizeof(client_buf), "DEADLOCK %s %d",
+                               muse_core_config_get_instance()->host[module->api_module], module->last_cmd);
+                       muse_core_log_get_instance()->log_write(client_buf);
+               }
        } else {
                LOGE("invalid pointer for module");
        }
 
-       if (muse_core_is_log_enabled()) {
-               snprintf(client_buf, sizeof(client_buf), "DEADLOCK %s %d", muse_core_config_get_instance()->host[module->api_module], module->last_cmd);
-               muse_core_log_get_instance()->log_write(client_buf);
-       }
-
        muse_core_respawn(SIGABRT);
 
        return FALSE;