Declare counter var inside loop

We require c99/gnu99 anyways.
This commit is contained in:
Michael Vetter
2020-11-09 11:03:54 +01:00
parent 304f63f204
commit 35aecd425f
22 changed files with 94 additions and 163 deletions

View File

@@ -1222,8 +1222,7 @@ void
ui_show_lines(ProfWin* window, gchar** lines)
{
if (lines) {
int i;
for (i = 0; lines[i] != NULL; i++) {
for (int i = 0; lines[i] != NULL; i++) {
win_println(window, THEME_DEFAULT, "-", "%s", lines[i]);
}
}