Skip to content

Commit

Permalink
cogctl: Fix uninitialized loop control variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aperezdc committed Aug 30, 2018
1 parent 5fa6844 commit 80393d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ cmd_help (const char *name,
if (argc == 1) {
g_print ("Available commands:\n");
const struct cmd *cmds = data;
for (unsigned i; cmds[i].name; i++) {
for (unsigned i = 0; cmds[i].name; i++) {
if (cmds[i].desc) {
g_print (" %-10s %s\n", cmds[i].name, cmds[i].desc);
}
Expand Down

0 comments on commit 80393d6

Please sign in to comment.