]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Remove useless memset of static command name lists in builtin-merge.c
authorAlex Riesen <raa.lkml@gmail.com>
Thu, 28 Aug 2008 17:17:13 +0000 (19:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2008 04:50:32 +0000 (21:50 -0700)
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>
builtin-merge.c

index dcd08f76b18995e306a80092fba223796e2e9ad6..9ad9791068c9330f28413ac67315246989c8d96d 100644 (file)
@@ -93,8 +93,6 @@ static struct strategy *get_strategy(const char *name)
                struct cmdnames not_strategies;
                loaded = 1;
 
-               memset(&main_cmds, 0, sizeof(struct cmdnames));
-               memset(&other_cmds, 0, sizeof(struct cmdnames));
                memset(&not_strategies, 0, sizeof(struct cmdnames));
                load_command_list("git-merge-", &main_cmds, &other_cmds);
                for (i = 0; i < main_cmds.cnt; i++) {