comparison src/exif-common.c @ 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 9104756a7828
children 10177e8c588b
comparison
equal deleted inserted replaced
2883:d38b56bd8f22 2884:f9a21c9891a0
888 return countryalpha2; 888 return countryalpha2;
889 } 889 }
890 890
891 static gchar *exif_build_formatted_star_rating(ExifData *exif) 891 static gchar *exif_build_formatted_star_rating(ExifData *exif)
892 { 892 {
893 gint n; 893 gint n = 0;
894 894
895 exif_get_integer(exif, "Xmp.xmp.Rating", &n); 895 exif_get_integer(exif, "Xmp.xmp.Rating", &n);
896 896
897 return convert_rating_to_stars(n); 897 return convert_rating_to_stars(n);
898 } 898 }