Fix compiler warning
authorJames Golovich <james@gnuinter.net>
Mon, 17 May 2004 21:15:37 +0000 (21:15 +0000)
committerJames Golovich <james@gnuinter.net>
Mon, 17 May 2004 21:15:37 +0000 (21:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2994 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 1f77bb3..ef5964f 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -4074,9 +4074,9 @@ int ast_pbx_outgoing_app(char *type, int format, void *data, int timeout, char *
                        strncpy(as->appdata,  appdata, sizeof(as->appdata) - 1);
                as->timeout = timeout;
                if (variable) {
-                       tmp = ast_strdupa(variable);
-                               for (var = strtok_r(tmp, "|", &tmp); var; var = strtok_r(NULL, "|", &tmp))
-                                       pbx_builtin_setvar( chan, var );
+                       vartmp = ast_strdupa(variable);
+                       for (var = strtok_r(vartmp, "|", &vartmp); var; var = strtok_r(NULL, "|", &vartmp))
+                               pbx_builtin_setvar( chan, var );
                }
                /* Start a new thread, and get something handling this channel. */
                pthread_attr_init(&attr);