Browse Source

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>
maint
Alex Riesen 17 years ago committed by Junio C Hamano
parent
commit
b9f62c0e7d
  1. 2
      builtin-merge.c

2
builtin-merge.c

@ -93,8 +93,6 @@ static struct strategy *get_strategy(const char *name) @@ -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++) {

Loading…
Cancel
Save