Add file name checker and Fix dbus type and bt return
[platform/core/uifw/stt.git] / client / stt_file.c
index 0a3e918..11b4a35 100644 (file)
@@ -371,6 +371,9 @@ int stt_file_initialize(void)
                        }
 
                        if (NULL != dirp) {
+                               if (!strcmp(".", dirp->d_name) || !strcmp("..", dirp->d_name))
+                                       continue;
+
                                sttengine_info_s* info = NULL;
                                char* filepath;
                                int filesize;