diff options
author | raveit65 <[email protected]> | 2017-01-08 20:38:10 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-17 12:28:22 +0100 |
commit | 239b7c8b751b2536a097797f2ea24907c1107059 (patch) | |
tree | a4e48b145c472614dd174d880e1e6ca49e20bd21 /font-viewer/font-thumbnailer.c | |
parent | 0d8d452c57c9835c8946ebd7609b95cfbd1355e0 (diff) | |
download | mate-control-center-239b7c8b751b2536a097797f2ea24907c1107059.tar.bz2 mate-control-center-239b7c8b751b2536a097797f2ea24907c1107059.tar.xz |
Fontviewer: Fix an uninitialized variable
The str variable may be freed without ever having been set
here, if we take one of the early gotos.
taken from:
https://git.gnome.org/browse/gnome-font-viewer/commit/?id=9d4ec73
Diffstat (limited to 'font-viewer/font-thumbnailer.c')
-rw-r--r-- | font-viewer/font-thumbnailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index 7323f313..4ce71f73 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/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[] = { |