From b0a1739abb00bb6c62811c5c0f1e766d0ef13140 Mon Sep 17 00:00:00 2001 From: Philipp Kerling Date: Fri, 27 Dec 2013 20:08:32 +0100 Subject: Check value type of notification hint 'urgency' before dereferencing in nodoka and coco theme --- src/themes/coco/coco-theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/themes/coco/coco-theme.c') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 71b62fb..2c257e7 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -602,7 +602,7 @@ set_notification_hints(GtkWindow *nw, GHashTable *hints) value = (GValue *)g_hash_table_lookup(hints, "urgency"); - if (value != NULL) + if (value != NULL && G_VALUE_HOLDS_UCHAR(value)) { windata->urgency = g_value_get_uchar(value); -- cgit v1.2.1