aboutsummaryrefslogtreecommitdiff
path: root/decode.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2025-07-20 17:26:39 +0000
committerXin LI <delphij@FreeBSD.org>2025-07-20 17:26:39 +0000
commit9006df9a94bf66485f7d23eec79eb6a344136401 (patch)
tree24c6d309954a3b2d52c54d40d634f02e2c7f25f0 /decode.c
parent48b0a08b8724e7d5671dac2abf17ddb6d4e2a8f8 (diff)
Diffstat (limited to 'decode.c')
-rw-r--r--decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 2942a30863cb..8e451d1810c9 100644
--- a/decode.c
+++ b/decode.c
@@ -750,7 +750,7 @@ static int cmd_search(constant char *cmd, constant unsigned char *table, constan
{
action = taction;
*extra = textra;
- } else if (match > 0) /* cmd is a prefix of this table entry */
+ } else if (match > 0 && action == A_INVALID) /* cmd is a prefix of this table entry */
{
action = A_PREFIX;
}