From 039e45c5ef1166e8a23516f204c2d3ad66718d0c Mon Sep 17 00:00:00 2001 From: Thomas Arp <357770+welcor@users.noreply.github.com> Date: Tue, 21 Apr 2026 23:10:26 +0200 Subject: [PATCH] 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> --- src/act.social.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/act.social.c b/src/act.social.c index 3db8e8a..2215dea 100644 --- a/src/act.social.c +++ b/src/act.social.c @@ -56,7 +56,7 @@ ACMD(do_action) if (!action->char_found) *arg = '\0'; - if (action->char_found && argument) + if (action->char_found) one_argument(argument, arg); else *arg = '\0';