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

Remove useless memset of static command name lists in builtin-merge.c

The statics are always initialized with 0 Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed Aug 28, 2008 at 19:17 UTC b9f62c0e7d60905d20de552280f91441300197c0
1 file changed -2
builtin-merge.c
-2
@@ -93,8 +93,6 @@ static struct strategy *get_strategy(const char *name)
93 struct cmdnames not_strategies;
94 loaded = 1;
95
96 - memset(&main_cmds, 0, sizeof(struct cmdnames));
97 - memset(&other_cmds, 0, sizeof(struct cmdnames));
96 memset(&not_strategies, 0, sizeof(struct cmdnames));
97 load_command_list("git-merge-", &main_cmds, &other_cmds);
98 for (i = 0; i < main_cmds.cnt; i++) {