diff options
author | Philipp Kerling <[email protected]> | 2013-12-27 20:08:32 +0100 |
---|---|---|
committer | Philipp Kerling <[email protected]> | 2013-12-27 20:08:32 +0100 |
commit | b0a1739abb00bb6c62811c5c0f1e766d0ef13140 (patch) | |
tree | fd1c38be2e239d02658bfd77a8d2c1463f685766 /src/themes/nodoka | |
parent | 9f4203a7c5d99fe66aa98d0ea3d23132bd5142cd (diff) | |
download | mate-notification-daemon-b0a1739abb00bb6c62811c5c0f1e766d0ef13140.tar.bz2 mate-notification-daemon-b0a1739abb00bb6c62811c5c0f1e766d0ef13140.tar.xz |
Check value type of notification hint 'urgency' before dereferencing in nodoka and coco theme
Diffstat (limited to 'src/themes/nodoka')
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 0998d0b..9ec831f 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -1005,7 +1005,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); |