Git development
 help / color / mirror / Atom feed
* [PATCH] Remove useless memset of static command name lists in builtin-merge.c
@ 2008-08-28 17:17 Alex Riesen
  0 siblings, 0 replies; only message in thread
From: Alex Riesen @ 2008-08-28 17:17 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

The statics are always initialized with 0

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---

...and we already depend on it.

 builtin-merge.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/builtin-merge.c b/builtin-merge.c
index dcd08f7..9ad9791 100644
--- a/builtin-merge.c
+++ b/builtin-merge.c
@@ -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++) {
-- 
1.6.0.1.150.g5966

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-28 17:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28 17:17 [PATCH] Remove useless memset of static command name lists in builtin-merge.c Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox