Update codes for gcc 9.2 compiler 79/222179/1 accepted/tizen/unified/20200113.130603 submit/tizen/20200110.075809
authorwn.jang <wn.jang@samsung.com>
Mon, 30 Dec 2019 08:53:17 +0000 (17:53 +0900)
committersungrae jo <seongrae.jo@samsung.com>
Fri, 10 Jan 2020 06:38:25 +0000 (06:38 +0000)
Change-Id: I4dfc53c538b73227ce4e72c500c13343a9fe439a
(cherry picked from commit 90167c9926e1b78ecba54ab57b1a0b0f97fa5104)

client/tts.c
test/test_main.c

index 67db4b9..8e9d4f6 100644 (file)
@@ -1229,7 +1229,7 @@ int tts_add_text(tts_h tts, const char* text, const char* language, int voice_ty
        g_voice_type = voice_type;
        g_speed = speed;
 
-       SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] repeat: text(%s), language(%s), voice type(%d), speed(%d)", client->text_repeat, g_language, g_voice_type, g_speed);
+       SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] repeat: text(%s), language(%s), voice type(%d), speed(%d)", client->text_repeat, (g_language) ? g_language : "NULL", g_voice_type, g_speed);
 
        /* change default language value */
        char* temp = NULL;
@@ -2845,7 +2845,7 @@ int tts_repeat(tts_h tts, char** text_repeat, int* utt_id)
                        return ret;
                }
                *text_repeat = strdup(client->text_repeat);
-               SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] text to repeat(%s), utt_id(%d)", *text_repeat, *utt_id);
+               SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] text to repeat(%s), utt_id(%d)", (*text_repeat) ? *text_repeat : "NULL", *utt_id);
                if (NULL != tmp_text) {
                        free(tmp_text);
                        tmp_text = NULL;
index 1d39556..8cfd4b6 100755 (executable)
@@ -233,7 +233,7 @@ int main(int argc, char *argv[])
                /* check file path to synthesize */
                else if (!strcmp("-f", argv[n])) {
                        src_path = TTS_STRDUP(argv[n+1]);
-                       SLOG(LOG_ERROR, tts_tag(), "File path : %s", src_path);
+                       SLOG(LOG_ERROR, tts_tag(), "File path : %s", (src_path) ? src_path : "NULL");
                        if (!__tts_test_get_text_from_file(src_path, &g_text)) {
                                return 0;
                        }