From 431adf320f4ce0ba31fb7a07ea53aca03c21fcbd Mon Sep 17 00:00:00 2001 From: Rinat Ibragimov Date: Mon, 21 Jan 2019 11:54:49 +0000 Subject: [PATCH] Fix #658: Bug fix: reads of uninitialized data https://github.com/BestImageViewer/geeqie/pull/658 --- 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 ce562eb3..e0b56edb 100644 --- a/src/exif-common.c +++ b/src/exif-common.c @@ -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); 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