Fix 'maybe used uninitialized' warning
authorShuhrat Dehkanov <sh.dehkanov@samsung.com>
Mon, 27 Jun 2016 07:16:00 +0000 (16:16 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 27 Jun 2016 07:19:43 +0000 (16:19 +0900)
Summary:
    bin/edje/edje_cc_out.c: In function ‘data_write_images’:
    bin/edje/edje_cc_out.c:1164:7: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        if (!f) return EINA_FALSE;
           ^
    bin/edje/edje_cc_out.c:1154:15: note: ‘f’ was declared here
        Eina_File *f;
                   ^

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: seoz, jpeg

Differential Revision: https://phab.enlightenment.org/D4101

src/bin/edje/edje_cc_out.c

index 5c07fbb..f164361 100644 (file)
@@ -1151,7 +1151,7 @@ tgv_file_check_and_add(Eet_File *ef, Edje_Image_Directory_Entry *img, int *image
    Image_Write *iw = NULL;
    Eina_List *li;
    const char *s;
-   Eina_File *f;
+   Eina_File *f = NULL;
    void *data;
 
    EINA_LIST_FOREACH(img_dirs, li, s)