Skip to contentSkip to conversation

cifscreds: use continue instead of break when matching commands

PATCH In review [email protected] 2 participants 2 messages Jan 14, 2025 – Jan 20, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cifscreds: use continue instead of break when matching commands

From: Thiago Becker <[email protected]>

While matching the commands in cifscreds, continue attempting to match to detect ambiguous commands.

---
 cifscreds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cifscreds.c +1 -1
index 32f2ee4..c52f495 100644
@@ -501,7 +501,7 @@ int main(int argc, char **argv)
 		if (cmd->name[n] == 0) {
 			/* exact match */
 			best = cmd;
-			break;
+			continue;
 		}
 
 		/* partial match */
Signature · 1 line
2.47.1