bug fixed: setting data length 0 as default
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Thu, 15 Jan 2015 05:48:40 +0000 (14:48 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Thu, 15 Jan 2015 05:49:21 +0000 (14:49 +0900)
Change-Id: Ie3ee6ad0bfbc8a7564842b0f97ef09f58e07ad7c
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
packaging/emuld.spec
src/common.cpp

index 8b13e3f0a66911c15037ccc825bfcca349b2f27f..a807af9910e2e0171c39caee6b86a1fe19a3bb9d 100644 (file)
@@ -1,5 +1,5 @@
 Name: emuld
-Version: 0.8.5
+Version: 0.8.6
 Release: 0
 Summary: Emulator daemon
 License: Apache-2.0
index a6e3a395a0d8ca0d044ac31eefc96cac4b52d4c7..d6413cbdac18c1abd3cb56d560be3dcd0de8ae31 100644 (file)
@@ -163,9 +163,7 @@ void send_to_ecs(const char* cat, int group, int action, char* data)
     if (!tmp)
         return;
 
-    if (data != NULL) {
-        memcpy(tmp, &datalen, 2);
-    }
+    memcpy(tmp, &datalen, 2);
     memcpy(tmp + 2, &group, 1);
     memcpy(tmp + 3, &action, 1);
     if (data != NULL) {