]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows build
authorMichael Jerris <mike@jerris.com>
Wed, 22 Oct 2008 21:55:06 +0000 (21:55 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 22 Oct 2008 21:55:06 +0000 (21:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10117 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 19adeff394a7e3ea9fd62c574b15a15075a1b644..5b0fa0db0142f0943be2f3376ab7b343497e17a3 100644 (file)
@@ -625,6 +625,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                        *e = '\0';
                        data = e + 1;
                } else {
+                       int j = 0, k = 0;
                        if (e) {
                                *e = ',';
                        }
@@ -633,11 +634,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                goto var_extract_error;
                        }
                        /* swallow the opening bracket */
-                       int i = 0, j = 0;
-                       while ((data + i) && *(data + i)) {
-                               j = i; i++;
+                       while ((data + k) && *(data + k)) {
+                               j = k; k++;
                                /* note that this affects vars[] */
-                               data[j] = data[i];
+                               data[j] = data[k];
                        }
                        *(--e) = '\0';
                        data = e + 1;