summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2009-08-11 10:10:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-12 23:14:31 (GMT)
commit0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447 (patch)
tree1f51e6428847fb5c464c719248ce2d926d32d8ae /help.c
parent75f492ace708afb4603b922a99ced318d980b8d5 (diff)
downloadgit-0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447.zip
git-0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447.tar.gz
git-0b74f5dc3a27a058cd5dfe45b5ada4d2853dc447.tar.bz2
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>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index fd87bb5..1203c72 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);