mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:33:07 +03:00
redefine col_num for uneven rows
In first for loop of print_cheatsheet(), redefine col_num if current iteration is null, and break the loop.
This commit is contained in:
parent
6143576a69
commit
cf2057b395
1 changed files with 4 additions and 0 deletions
|
|
@ -446,6 +446,10 @@ static void print_cheatsheet(int i, int col_num)
|
|||
/* The headers */
|
||||
if(cheat_items[c + i].heading[0])
|
||||
printf("%-30s ", cheat_items[c + i].heading[0]);
|
||||
else {
|
||||
col_num = c; /* redefine for uneven rows */
|
||||
break;
|
||||
}
|
||||
}
|
||||
puts("");
|
||||
for(c = 0; c < col_num; c++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue