зеркало из https://github.com/microsoft/git.git
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:
Родитель
75f492ace7
Коммит
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;
|
||||
|
||||
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));
|
||||
|
||||
git_config(git_unknown_cmd_config, NULL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче