We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42423c6 + 0c75692 commit df786f6Copy full SHA for df786f6
builtin/merge.c
@@ -188,7 +188,7 @@ static struct strategy *get_strategy(const char *name)
188
for (i = 0; i < main_cmds.cnt; i++) {
189
int j, found = 0;
190
struct cmdname *ent = main_cmds.names[i];
191
- for (j = 0; j < ARRAY_SIZE(all_strategy); j++)
+ for (j = 0; !found && j < ARRAY_SIZE(all_strategy); j++)
192
if (!strncmp(ent->name, all_strategy[j].name, ent->len)
193
&& !all_strategy[j].name[ent->len])
194
found = 1;
0 commit comments