[gnome-font-viewer/gnome-3-14] Fix an uninitialized variable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer/gnome-3-14] Fix an uninitialized variable
- Date: Thu, 13 Nov 2014 19:27:17 +0000 (UTC)
commit 783b6ac60dfa934e1b8e99a376fc033a35ffbce0
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 13 14:25:09 2014 -0500
Fix an uninitialized variable
The str variable may be freed without ever having been set
here, if we take one of the early gotos. This is showing up
as a frequent crash in Fedoras retrace server:
https://bugzilla.redhat.com/show_bug.cgi?id=1148522
src/font-thumbnailer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/font-thumbnailer.c b/src/font-thumbnailer.c
index 3e76323..57be150 100644
--- a/src/font-thumbnailer.c
+++ b/src/font-thumbnailer.c
@@ -181,7 +181,7 @@ main (int argc,
cairo_t *cr;
cairo_text_extents_t text_extents;
cairo_font_face_t *font;
- gchar *str;
+ gchar *str = NULL;
gdouble scale, scale_x, scale_y;
const GOptionEntry options[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]