Skip to content

Commit

Permalink
Remove useless memset of static command name lists in builtin-merge.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Aug 29, 2008
1 parent e321180 commit b9f62c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builtin-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit b9f62c0

Please sign in to comment.