Fix the size of app id
[platform/core/uifw/stt.git] / common / stt_engine.c
index 6e3498f..9dfd996 100644 (file)
@@ -774,17 +774,13 @@ int stt_engine_send_result(stte_result_event_e event, const char* type, const ch
                        SLOG(LOG_ERROR, stt_tag(), "[Engine ERROR] Fail to send result");
                }
        } else {
-               g_result_cb(event, type, result, result_count, msg, time_info, user_data);
+               ret = g_result_cb(event, type, result, result_count, msg, time_info, user_data);
        }
        return ret;
 }
 
 int stt_engine_send_error(stte_error_e error, const char* msg)
 {
-       if (NULL == msg) {
-               SLOG(LOG_ERROR, stt_tag(), "[Engine ERROR] Invalid parameter");
-       }
-
        int ret = STTE_ERROR_NONE;
        ret = sttd_engine_agent_send_error(error, msg);
        if (0 != ret) {