Commit e4616236 authored by Simon Steinbeiss's avatar Simon Steinbeiss Committed by Simon Steinbeiß
Browse files

statustray: Prevent crash when parsing properties (Fixes #379)

parent 83969c3a
Pipeline #5805 passed with stages
in 3 minutes and 57 seconds
......@@ -750,6 +750,11 @@ sn_item_get_all_properties_result (GObject *source_object,
g_object_unref (val); \
}
if (g_variant_check_format_string (properties, "(a{sv})", FALSE) == FALSE)
{
g_warning ("Could not parse properties for StatusNotifierItem.");
return;
}
g_variant_get (properties, "(a{sv})", &iter);
while (g_variant_iter_loop (iter, "{&sv}", &name, &value)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment