summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-01-23 18:39:18 +0100
committerlukefromdc <[email protected]>2017-01-23 13:49:35 -0500
commit1c7cea2fed9c95bdf3b1831f8287ecdc551152b6 (patch)
treeade07da2e801c3663f5a7eaf194c4ac9aa8fb3dc /applets/notification_area/status-notifier
parent50a7d2dd2516e1c1b2b347a89b70f879ac6811de (diff)
downloadmate-panel-1c7cea2fed9c95bdf3b1831f8287ecdc551152b6.tar.bz2
mate-panel-1c7cea2fed9c95bdf3b1831f8287ecdc551152b6.tar.xz
status-notifier: Shut GCC up
Diffstat (limited to 'applets/notification_area/status-notifier')
-rw-r--r--applets/notification_area/status-notifier/sn-item-v0.c4
1 files changed, 3 insertions, 1 deletions
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);