From a7b24c955c7a32b2bfd89f4f8484db2ed0dced0b Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 14 May 2026 19:56:47 +0200 Subject: [PATCH] MT#61856 call_flags: improve styling in `call_ng_flags_prefix()` The nested if-statement is correctly written, but visually is fragile. Simple curly braces will prevent anyone in the future introducing a dangling-if style mistake. Change-Id: I3632702390f046c317eac4e5fef76bc7db707081 --- daemon/call_flags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/call_flags.c b/daemon/call_flags.c index 6f7c318c4..06afd173b 100644 --- a/daemon/call_flags.c +++ b/daemon/call_flags.c @@ -648,9 +648,10 @@ INLINE int call_ng_flags_prefix(str *s_ori, const char *prefix, { size_t len = strlen(prefix); str s = *s_ori; - if (len > 0) + if (len > 0) { if (str_shift_cmp(&s, prefix)) return 0; + } cb(&s, 0, arg); return 1; }