mirror of https://github.com/davatorium/rofi.git
Change order evaluation to make CPPCheck happy.
Code was not wrong.
This commit is contained in:
parent
fdb9b014f5
commit
604779c444
|
@ -703,7 +703,7 @@ void rofi_theme_convert_old ( void )
|
||||||
"* { bordercolor: %s; }",
|
"* { bordercolor: %s; }",
|
||||||
"* { separatorcolor: %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] ) );
|
char *str = g_strdup_printf ( conf[i], rofi_theme_convert_color ( retv[i] ) );
|
||||||
rofi_theme_parse_string ( str );
|
rofi_theme_parse_string ( str );
|
||||||
g_free ( str );
|
g_free ( str );
|
||||||
|
|
Loading…
Reference in New Issue