Bug fix: reads of uninitialized data
authorRinat Ibragimov <ibragimovrinat@mail.ru>
Sun, 20 Jan 2019 19:56:30 +0000 (22:56 +0300)
committerRinat Ibragimov <ibragimovrinat@mail.ru>
Sun, 20 Jan 2019 19:57:03 +0000 (22:57 +0300)
src/exif-common.c
src/view_dir_list.c

index ba6c06d..400a2fb 100644 (file)
@@ -885,7 +885,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;