Skip to content
Snippets Groups Projects
Commit edc33fed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

globalhotleys/xcb: fix variable shadowing

parent 1ce92ecf
No related branches found
No related tags found
No related merge requests found
......@@ -192,16 +192,14 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
if( !p_keys )
goto end;
int i = 0;
bool no_modifier = true;
while( p_keys[i] != XCB_NO_SYMBOL )
for( int i = 0; p_keys[i] != XCB_NO_SYMBOL; i++ )
{
if( p_keys[i] != 0 )
{
no_modifier = false;
break;
}
i++;
}
if( no_modifier )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment