XcbSystemTrayTracker: fix uninitialized value

Change-Id: I5798652408cde3ef6628a4b546c2ebecde1e3081
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
bb10
Stephan Binner 2015-03-02 13:32:07 +01:00
parent 38b5e9f8ba
commit 983bdc0713
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ bool QXcbSystemTrayTracker::visualHasAlphaChannel()
if (!systray_atom_reply)
return false;
xcb_visualid_t systrayVisualId;
xcb_visualid_t systrayVisualId = XCB_NONE;
if (systray_atom_reply->value_len > 0 && xcb_get_property_value_length(systray_atom_reply) > 0) {
xcb_visualid_t * vids = (uint32_t *)xcb_get_property_value(systray_atom_reply);
systrayVisualId = vids[0];