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 <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
75f492ace7
commit
0b74f5dc3a
2
help.c
2
help.c
@ -302,7 +302,7 @@ const char *help_unknown_cmd(const char *cmd)
|
|||||||
struct cmdnames main_cmds, other_cmds;
|
struct cmdnames main_cmds, other_cmds;
|
||||||
|
|
||||||
memset(&main_cmds, 0, sizeof(main_cmds));
|
memset(&main_cmds, 0, sizeof(main_cmds));
|
||||||
memset(&other_cmds, 0, sizeof(main_cmds));
|
memset(&other_cmds, 0, sizeof(other_cmds));
|
||||||
memset(&aliases, 0, sizeof(aliases));
|
memset(&aliases, 0, sizeof(aliases));
|
||||||
|
|
||||||
git_config(git_unknown_cmd_config, NULL);
|
git_config(git_unknown_cmd_config, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user