Sync with tizen branch 46/94946/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Wed, 2 Nov 2016 04:58:07 +0000 (13:58 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Wed, 2 Nov 2016 04:58:41 +0000 (13:58 +0900)
Change-Id: I3e785f0012ac51cd72a08a1d4b5b58a2f0957031
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
common/tts_config_mgr.c
server/ttse.c

index 1304fc0..3d7e18c 100755 (executable)
@@ -771,6 +771,9 @@ int __tts_config_mgr_get_engine_info()
                        }
 
                        if (NULL != dirp) {
+                               if (!strcmp(".", dirp->d_name) || !strcmp("..", dirp->d_name))
+                                       continue;
+
                                filesize = strlen(TTS_DEFAULT_ENGINE_INFO) + strlen(dirp->d_name) + 2;
                                if (filesize >= 512) {
                                        SECURE_SLOG(LOG_ERROR, tts_tag(), "[CONFIG ERROR] File path is too long : %s", dirp->d_name);
@@ -810,6 +813,9 @@ int __tts_config_mgr_get_engine_info()
                        }
 
                        if (NULL != dirp) {
+                               if (!strcmp(".", dirp->d_name) || !strcmp("..", dirp->d_name))
+                                       continue;
+
                                filesize = strlen(TTS_DOWNLOAD_ENGINE_INFO) + strlen(dirp->d_name) + 2;
                                if (filesize >= 512) {
                                        SECURE_SLOG(LOG_ERROR, tts_tag(), "[CONFIG ERROR] File path is too long : %s", dirp->d_name);
index d5ab9e9..01eb7f0 100755 (executable)
@@ -154,7 +154,6 @@ int ttse_send_result(ttse_result_event_e event, const void* data, unsigned int d
 
        if (NULL == data) {
                SLOG(LOG_ERROR, tts_tag(), "[ERROR] Input parameter is null");
-               return TTSE_ERROR_INVALID_PARAMETER;
        }
 
        ret = ttsd_send_result(event, data, data_size, audio_type, rate, user_data);