From: Johan Herland Date: Tue, 11 Aug 2009 10:10:21 +0000 (+0200) Subject: help.c: give correct structure's size to memset() X-Git-Tag: v1.6.4.1~10^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447;p=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 Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index fd87bb5ae..1203c7291 100644 --- a/help.c +++ b/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);