diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-08-08 09:40:03 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-08-08 09:40:38 +0200 |
commit | 604779c44406a9e7b2a6783a4183e3a46911b0f6 (patch) | |
tree | c2c4b2291c2bd4f52654368b381b3ffe527309ef | |
parent | fdb9b014f543db6b21d8ef0c028f409140c84aa0 (diff) |
Change order evaluation to make CPPCheck happy.
Code was not wrong.
-rw-r--r-- | source/theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c index 59000c47..86a781ca 100644 --- a/source/theme.c +++ b/source/theme.c @@ -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 ); |