Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
help.c: give correct structure's size to memset()
author
Johan Herland
<johan@herland.net>
Tue, 11 Aug 2009 10:10:21 +0000
(12:10 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 12 Aug 2009 23:14:31 +0000
(16:14 -0700)
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>
help.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
75f492a
)
diff --git
a/help.c
b/help.c
index fd87bb5aeec82beec600be46248b19b13bb33804..1203c7291ebf2a411fb4a0901f808587ff8ead8b 100644
(file)
--- 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);