]> 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 16:56:00 +0000 (16:56 +0000)
Resolves: #277
(cherry picked from commit 5077301de6da6e914c7cb2e7cc06f67fdd697022)

main/pbx.c

index c655f1bcfcdfe78b535389730a82719b6c9566b2..a641fcbd08a45f60d8c3db89aef38bd11558a2c9 100644 (file)
@@ -2978,7 +2978,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");