From 1c7cea2fed9c95bdf3b1831f8287ecdc551152b6 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 23 Jan 2017 18:39:18 +0100 Subject: status-notifier: Shut GCC up --- applets/notification_area/status-notifier/sn-item-v0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'applets') diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c index 15cc6eea..0ef0570a 100644 --- a/applets/notification_area/status-notifier/sn-item-v0.c +++ b/applets/notification_area/status-notifier/sn-item-v0.c @@ -102,6 +102,8 @@ scale_surface (SnIconPixmap *pixmap, cairo_surface_t *scaled; cairo_t *cr; + g_return_val_if_fail (pixmap != NULL, NULL); + ratio = pixmap->width / (gdouble) pixmap->height; if (orientation == GTK_ORIENTATION_HORIZONTAL) { @@ -174,7 +176,7 @@ get_surface (SnItemV0 *v0, { GList *pixmaps; cairo_surface_t *surface; - SnIconPixmap *best; + SnIconPixmap *best = NULL; GList *l; g_assert (v0->icon_pixmap != NULL && v0->icon_pixmap[0] != NULL); -- cgit v1.2.1