@matheusbsbs / matheus-bagliano / commits / 0b74f5dc3a
Fork 0

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>

Johan Herland committed Aug 11, 2009 at 12:10 UTC 0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447
1 file changed +1 -1
help.c
+1 -1
@@ -302,7 +302,7 @@ const char *help_unknown_cmd(const char *cmd)
302 struct cmdnames main_cmds, other_cmds;
303
304 memset(&main_cmds, 0, sizeof(main_cmds));
305 - memset(&other_cmds, 0, sizeof(main_cmds));
305 + memset(&other_cmds, 0, sizeof(other_cmds));
306 memset(&aliases, 0, sizeof(aliases));
307
308 git_config(git_unknown_cmd_config, NULL);