emile: Init ptrag as it might get used uninitialized if not
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 8 Jun 2015 14:43:24 +0000 (16:43 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 8 Jun 2015 15:09:38 +0000 (17:09 +0200)
lib/emile/emile_image.c:2099:49: warning: 'ptrag' may be used uninitialized in this function [-Wmaybe-uninitialized]

src/lib/emile/emile_image.c

index dc1bed2..aed1ae8 100644 (file)
@@ -1594,7 +1594,7 @@ _emile_jpeg_data(Emile_Image *image,
    const unsigned char *m = NULL;
    uint8_t *ptr, *line[16], *data;
    uint32_t *ptr2 = NULL, *ptr_rotate = NULL;
-   uint16_t *ptrag, *ptrag_rotate = NULL;
+   uint16_t *ptrag = NULL, *ptrag_rotate = NULL;
    uint8_t *ptrg = NULL, *ptrg_rotate = NULL;
    unsigned int x, y, l, i, scans;
    int region = 0;