Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Remove useless memset of static command name lists in builtin-merge.c
author
Alex Riesen
<raa.lkml@gmail.com>
Thu, 28 Aug 2008 17:17:13 +0000
(19:17 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e321180
)
diff --git
a/builtin-merge.c
b/builtin-merge.c
index dcd08f76b18995e306a80092fba223796e2e9ad6..9ad9791068c9330f28413ac67315246989c8d96d 100644
(file)
--- 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(¬_strategies, 0, sizeof(struct cmdnames));
load_command_list("git-merge-", &main_cmds, &other_cmds);
for (i = 0; i < main_cmds.cnt; i++) {