Potential fix for code scanning alert no. 2: Redundant null check due to previous dereference (#171)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Thomas Arp
2026-04-21 23:10:26 +02:00
committed by GitHub
parent 862c887b54
commit 039e45c5ef

View File

@@ -56,7 +56,7 @@ ACMD(do_action)
if (!action->char_found) if (!action->char_found)
*arg = '\0'; *arg = '\0';
if (action->char_found && argument) if (action->char_found)
one_argument(argument, arg); one_argument(argument, arg);
else else
*arg = '\0'; *arg = '\0';