edje: resolve the possible use of uninitialized value 91/243391/2
authorJongmin Lee <jm105.lee@samsung.com>
Mon, 7 Sep 2020 08:31:26 +0000 (17:31 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 8 Sep 2020 04:49:37 +0000 (04:49 +0000)
Change-Id: I5243bb5a0a703812f7b4ef02642f6f0f669e7933

src/bin/edje/edje_cc_out.c

index 13aa554..319da7f 100644 (file)
@@ -1769,7 +1769,11 @@ data_thread_mo(void *data, Ecore_Thread *thread EINA_UNUSED)
    int bytes = 0;
 
    if (mw->mo_path)
-     f = eina_file_open(mw->mo_path, 0);
+     {
+        snprintf((char *)mo_path, sizeof(mo_path), "%s", mw->mo_path);
+        f = eina_file_open(mo_path, 0);
+     }
+
    if (!f)
      {
         // Search the mo file in all the -md ( mo directory )