Fix invalid memory check bug 26/99526/1
authorKwangyoun Kim <ky85.kim@samsung.com>
Wed, 23 Nov 2016 07:36:50 +0000 (16:36 +0900)
committerKwangyoun Kim <ky85.kim@samsung.com>
Wed, 23 Nov 2016 07:40:29 +0000 (23:40 -0800)
Change-Id: Ia530565a6fd245ddb1731744502b156ffc905950
Signed-off-by: Kwangyoun Kim <ky85.kim@samsung.com>
engine-parser/src/tts-engine-parser.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 7f514bc..35ab1b7
@@ -149,7 +149,7 @@ static void __insert_language_from_metadata(xmlNodePtr root, const char *languag
        char *tmp_lang = NULL;
        char *tmp_free = NULL;
        tmp_free = tmp_lang = strdup(language);
-       if (NULL != tmp_lang) {
+       if (NULL == tmp_lang) {
                LOGE("Fail to memory allocation");
                return;
        }