]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pbx.c: Fix gcc 12 compiler warning.
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 27 Aug 2023 10:32:07 +0000 (10:32 +0000)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 18:21:31 +0000 (18:21 +0000)
Resolves: #277
(cherry picked from commit 9e6266e0080be2bab9c36750bcd8bb7f7e840af6)

main/pbx.c

index 2eeb09d706fea3056596e47575e7bebaf58cd11c..15d9496998d92967a5a95292a2917e9ecc429cbd 100644 (file)
@@ -2977,7 +2977,7 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
                        break;
                case STATUS_NO_LABEL:
                        if (context && !combined_find_spawn)
-                               ast_log(LOG_NOTICE, "No such label '%s' in extension '%s' in context '%s'\n", label, exten, S_OR(context, ""));
+                               ast_log(LOG_NOTICE, "No such label '%s' in extension '%s' in context '%s'\n", S_OR(label, ""), exten, S_OR(context, ""));
                        break;
                default:
                        ast_debug(1, "Shouldn't happen!\n");