Remove null check from ttse_send_error 23/152723/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 27 Sep 2017 02:54:27 +0000 (11:54 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 27 Sep 2017 02:54:27 +0000 (11:54 +0900)
Change-Id: Ie8ba9170a67c1776a635fcd7fe20721ea3105207
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_server.c
server/ttse.c

index cdd6e9b..c00709c 100644 (file)
@@ -178,7 +178,7 @@ int ttsd_send_error(ttse_error_e error, const char* msg)
        int uttid = g_utt.uttid;
        int tmp_pid = ttsd_data_get_pid(uid);
 
-       SLOG(LOG_ERROR, tts_tag(), "[SERVER ERROR] Error msg from engine, pid(%d), uid(%d), uttid(%d), error(%d), msg(%s)", tmp_pid, uid, uttid, error, msg);
+       SLOG(LOG_ERROR, tts_tag(), "[SERVER ERROR] Error msg from engine, pid(%d), uid(%d), uttid(%d), error(%d), msg(%s)", tmp_pid, uid, uttid, error, (NULL == msg ? "NULL" : msg));
 
        __server_set_synth_control(TTSD_SYNTHESIS_CONTROL_EXPIRED);
 
index 0e8ee96..5dd4071 100755 (executable)
@@ -159,11 +159,6 @@ int ttse_send_error(ttse_error_e error, const char* msg)
 {
        int ret;
 
-       if (NULL == msg) {
-               SLOG(LOG_ERROR, tts_tag(), "[ERROR] Input parameter is null");
-               return TTSE_ERROR_INVALID_PARAMETER;
-       }
-
        ret = ttsd_send_error(error, msg);
 
        if (0 != ret) {