{"thread":{"id":"15252","subject":"[PATCH] Remove useless memset of static command name lists in builtin-merge.c","startedAt":"2008-08-28T17:17:13Z","lastAt":"2008-08-28T17:17:13Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"88925","messageId":"20080828171713.GB6024@blimp.local","threadId":"15252","inReplyTo":null,"subject":"[PATCH] Remove useless memset of static command name lists in builtin-merge.c","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-08-28T17:17:13Z","receivedAt":"2008-08-28T17:17:13Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"The statics are always initialized with 0\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n\n...and we already depend on it.\n\n builtin-merge.c |    2 --\n 1 files changed, 0 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin-merge.c b/builtin-merge.c\nindex dcd08f7..9ad9791 100644\n--- a/builtin-merge.c\n+++ b/builtin-merge.c\n@@ -93,8 +93,6 @@ static struct strategy *get_strategy(const char *name)\n \t\tstruct cmdnames not_strategies;\n \t\tloaded = 1;\n \n-\t\tmemset(&main_cmds, 0, sizeof(struct cmdnames));\n-\t\tmemset(&other_cmds, 0, sizeof(struct cmdnames));\n \t\tmemset(&not_strategies, 0, sizeof(struct cmdnames));\n \t\tload_command_list(\"git-merge-\", &main_cmds, &other_cmds);\n \t\tfor (i = 0; i < main_cmds.cnt; i++) {\n-- \n1.6.0.1.150.g5966\n"}]}