]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do a string comparison instead of pointer comparison since some people specify the...
authorJoshua Colp <jcolp@digium.com>
Thu, 22 Jan 2009 15:13:56 +0000 (15:13 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 22 Jan 2009 15:13:56 +0000 (15:13 +0000)
(closes issue #14011)
Reported by: dveiga
Patches:
      pbx.c.patch uploaded by dveiga (license 665)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170050 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 1cc04f504f7fee5f3ab90b6ab975cf5dc3b89e58..655181f7f23e63e8edc09769131966b3ee01072e 100644 (file)
@@ -5722,7 +5722,7 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
                        ast_stopstream(chan);
                }
        }
-       if (args.context != chan->context && res) {
+       if (strcmp(args.context, chan->context) && res) {
                snprintf(chan->exten, sizeof(chan->exten), "%c", res);
                ast_copy_string(chan->context, args.context, sizeof(chan->context));
                chan->priority = 0;