Fix #658: Bug fix: reads of uninitialized data
authorRinat Ibragimov <ibragimovrinat@mail.ru>
Mon, 21 Jan 2019 11:54:49 +0000 (11:54 +0000)
committerColin Clark <colin.clark@cclark.uk>
Mon, 21 Jan 2019 11:54:49 +0000 (11:54 +0000)
https://github.com/BestImageViewer/geeqie/pull/658

src/exif-common.c
src/view_dir_list.c

index ce562eb..e0b56ed 100644 (file)
@@ -890,7 +890,7 @@ static gchar *exif_build_formatted_countrycode(ExifData *exif)
 
 static gchar *exif_build_formatted_star_rating(ExifData *exif)
 {
-       gint n;
+       gint n = 0;
 
        exif_get_integer(exif, "Xmp.xmp.Rating", &n);
 
index f752d1f..caa9cbf 100644 (file)
@@ -149,7 +149,7 @@ static gboolean vdlist_populate(ViewDir *vd, gboolean clear)
        FileData *fd;
        SortType sort_type = SORT_NAME;
        gboolean sort_ascend = TRUE;
-       gchar *link;
+       gchar *link = NULL;
 
        old_list = VDLIST(vd)->list;