Skip to contentSkip to conversation

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

PATCH New Alex Riesen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

The statics are always initialized with 0

---

...and we already depend on it.

 builtin-merge.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
builtin-merge.c +0 -2
index dcd08f7..9ad9791 100644
@@ -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++) {
Signature · 1 line
1.6.0.1.150.g5966