From 36c9c8bc5b37a3f56e63a62ef1a72ec1571b8507 Mon Sep 17 00:00:00 2001 From: Jongmin Lee Date: Mon, 7 Sep 2020 17:31:26 +0900 Subject: [PATCH] edje: resolve the possible use of uninitialized value Change-Id: I5243bb5a0a703812f7b4ef02642f6f0f669e7933 --- src/bin/edje/edje_cc_out.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index 13aa554..319da7f 100644 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c @@ -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 ) -- 2.7.4