edje_cc: Fix uninitialized scalar variable 75/242475/2
authorWoochanlee <wc0917.lee@samsung.com>
Thu, 27 Aug 2020 06:57:18 +0000 (15:57 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Thu, 27 Aug 2020 11:35:13 +0000 (11:35 +0000)
mo_path can using for fprintf in using_file function without initialize.

Change-Id: I5cb724c490433c74730183e9d178973fb526f6a8
CID: 1147436

src/bin/edje/edje_cc_out.c

index f3b80db..13aa554 100644 (file)
@@ -1762,7 +1762,7 @@ data_thread_mo(void *data, Ecore_Thread *thread EINA_UNUSED)
    Eina_List *ll;
 
    char *dir_path = NULL;
-   char mo_path[PATH_MAX];
+   char mo_path[PATH_MAX] = {0};
    char moid_str[50];
    Eina_File *f = NULL;
    void *m = NULL;