From f3799ef207799723c6de3b0c8923a2ccf031a4df Mon Sep 17 00:00:00 2001 From: Rinat Ibragimov Date: Sun, 20 Jan 2019 22:56:30 +0300 Subject: [PATCH] Bug fix: reads of uninitialized data --- src/exif-common.c | 2 +- src/view_dir_list.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exif-common.c b/src/exif-common.c index ba6c06d0..400a2fb8 100644 --- a/src/exif-common.c +++ b/src/exif-common.c @@ -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); diff --git a/src/view_dir_list.c b/src/view_dir_list.c index f752d1fe..caa9cbfb 100644 --- a/src/view_dir_list.c +++ b/src/view_dir_list.c @@ -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; -- 2.20.1