changeset 2887:d89d46433c78

Bug fix: reads of uninitialized data
author Rinat Ibragimov <ibragimovrinat@mail.ru>
date Sun, 20 Jan 2019 22:56:30 +0300
parents b20a96b979a3
children f02e6b7c1336
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	Sat Nov 03 17:53:31 2018 +0000
+++ b/src/exif-common.c	Sun Jan 20 22:56:30 2019 +0300
@@ -885,7 +885,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	Sat Nov 03 17:53:31 2018 +0000
+++ b/src/view_dir_list.c	Sun Jan 20 22:56:30 2019 +0300
@@ -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;