Silent a warning.
authorLaurent Monin <zas@norz.org>
Thu, 30 Aug 2012 12:10:29 +0000 (14:10 +0200)
committerLaurent Monin <zas@norz.org>
Thu, 30 Aug 2012 12:10:29 +0000 (14:10 +0200)
‘histmap’ may be used uninitialized in this function

src/image-overlay.c

index 635e827..773d5a0 100644 (file)
@@ -478,7 +478,7 @@ static GdkPixbuf *image_osd_info_render(OverlayStateData *osd)
        const gchar *name;
        gchar *text;
        gboolean with_hist;
        const gchar *name;
        gchar *text;
        gboolean with_hist;
-       const HistMap *histmap;
+       const HistMap *histmap = NULL;
        ImageWindow *imd = osd->imd;
        FileData *fd = image_get_fd(imd);
 
        ImageWindow *imd = osd->imd;
        FileData *fd = image_get_fd(imd);