Change order evaluation to make CPPCheck happy.

Code was not wrong.
This commit is contained in:
Dave Davenport 2017-08-08 09:40:03 +02:00
parent fdb9b014f5
commit 604779c444
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ void rofi_theme_convert_old ( void )
"* { bordercolor: %s; }",
"* { separatorcolor: %s; }"
};
for ( int i = 0; retv && retv[i] && i < 3; i++ ) {
for ( int i = 0; retv && i < 3 && retv[i] ; i++ ) {
char *str = g_strdup_printf ( conf[i], rofi_theme_convert_color ( retv[i] ) );
rofi_theme_parse_string ( str );
g_free ( str );