From: Jinhyung Choi Date: Thu, 15 Jan 2015 05:48:40 +0000 (+0900) Subject: bug fixed: setting data length 0 as default X-Git-Tag: submit/tizen/20150527.025434^2~10^2~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e013314a834ded910cd29bd5527e9f9b95e5e8ea;p=platform%2Fadaptation%2Femulator%2Femulator-daemon.git bug fixed: setting data length 0 as default Change-Id: Ie3ee6ad0bfbc8a7564842b0f97ef09f58e07ad7c Signed-off-by: Jinhyung Choi --- diff --git a/packaging/emuld.spec b/packaging/emuld.spec index 8b13e3f..a807af9 100644 --- a/packaging/emuld.spec +++ b/packaging/emuld.spec @@ -1,5 +1,5 @@ Name: emuld -Version: 0.8.5 +Version: 0.8.6 Release: 0 Summary: Emulator daemon License: Apache-2.0 diff --git a/src/common.cpp b/src/common.cpp index a6e3a39..d6413cb 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -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) {