hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=e086a6edbb31e5312ca63766ab97e0fbdd8d5a55

commit e086a6edbb31e5312ca63766ab97e0fbdd8d5a55
Author: Hermet Park <[email protected]>
Date:   Tue Aug 9 00:25:43 2016 +0900

    ++null check
---
 src/lib/enventor_smart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c
index 8cdf2fc..ac399c9 100644
--- a/src/lib/enventor_smart.c
+++ b/src/lib/enventor_smart.c
@@ -395,7 +395,7 @@ _enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
    if (!ecore_file_exists(file))
      {
          FILE *fp = fopen(file, "w");
-         fclose(fp);
+         if (fp) fclose(fp);
      }
 
    if (!edit_load(pd->main_it->ed, file)) return EINA_FALSE;

-- 


Reply via email to