changeset 2884:f9a21c9891a0

Fix #658: Bug fix: reads of uninitialized data https://github.com/BestImageViewer/geeqie/pull/658
author Rinat Ibragimov <ibragimovrinat@mail.ru>
date Mon, 21 Jan 2019 11:54:49 +0000
parents d38b56bd8f22
children e3a3b30d724a
files src/exif-common.c src/view_dir_list.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif-common.c	Sun Jan 06 17:40:31 2019 +0000
+++ b/src/exif-common.c	Mon Jan 21 11:54:49 2019 +0000
@@ -890,7 +890,7 @@
 
 static gchar *exif_build_formatted_star_rating(ExifData *exif)
 {
-	gint n;
+	gint n = 0;
 
 	exif_get_integer(exif, "Xmp.xmp.Rating", &n);
 
--- a/src/view_dir_list.c	Sun Jan 06 17:40:31 2019 +0000
+++ b/src/view_dir_list.c	Mon Jan 21 11:54:49 2019 +0000
@@ -149,7 +149,7 @@
 	FileData *fd;
 	SortType sort_type = SORT_NAME;
 	gboolean sort_ascend = TRUE;
-	gchar *link;
+	gchar *link = NULL;
 
 	old_list = VDLIST(vd)->list;