From 668ecf4f0920850feb82a4a4e49313593d9952e7 Mon Sep 17 00:00:00 2001 From: X512 Date: Sun, 22 Mar 2020 11:33:18 +0900 Subject: [PATCH] Kernel: fix operator priority warning Pointed by clang. Change-Id: I16aa242c94abdf1fa22c4651e63c8c236e6c1a82 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2393 Reviewed-by: John Scipione --- src/system/kernel/debug/debug_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/debug/debug_commands.cpp b/src/system/kernel/debug/debug_commands.cpp index 404d94f1b6..412a359a62 100644 --- a/src/system/kernel/debug/debug_commands.cpp +++ b/src/system/kernel/debug/debug_commands.cpp @@ -227,7 +227,7 @@ next_debugger_command(debugger_command* command, const char* prefix, else command = command->next; - while (command != NULL && !strncmp(prefix, command->name, prefixLen) == 0) + while (command != NULL && strncmp(prefix, command->name, prefixLen) != 0) command = command->next; return command;