Skip to content

Commit 0b74f5d

Browse files
jherlandgitster
authored andcommitted
help.c: give correct structure's size to memset()
These two structures are of the same type, but we'd better be consistent. Signed-off-by: Johan Herland <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 75f492a commit 0b74f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const char *help_unknown_cmd(const char *cmd)
302302
struct cmdnames main_cmds, other_cmds;
303303

304304
memset(&main_cmds, 0, sizeof(main_cmds));
305-
memset(&other_cmds, 0, sizeof(main_cmds));
305+
memset(&other_cmds, 0, sizeof(other_cmds));
306306
memset(&aliases, 0, sizeof(aliases));
307307

308308
git_config(git_unknown_cmd_config, NULL);

0 commit comments

Comments
 (0)