efl: properly initialize Eina_File.
authorCedric BAIL <cedric@osg.samsung.com>
Thu, 5 Oct 2017 23:24:47 +0000 (16:24 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 5 Oct 2017 23:24:47 +0000 (16:24 -0700)
CID 1381605.

src/lib/efl/interfaces/efl_file.c

index 116e49d..562a06b 100644 (file)
@@ -15,7 +15,7 @@ struct _Efl_File_Data
 static Eina_Bool
 _efl_file_file_set(Eo *obj, Efl_File_Data *pd, const char *file, const char *key)
 {
-   Eina_File *f;
+   Eina_File *f = NULL;
    Eina_Bool r = EINA_FALSE;
 
    pd->error = EFL_IMAGE_LOAD_ERROR_DOES_NOT_EXIST;