]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3099 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jul 2011 22:13:38 +0000 (17:13 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jul 2011 22:13:38 +0000 (17:13 -0500)
src/switch_utils.c

index 221a82335c1c7c4e58b9458716ef7f9776298534..158c5d540f044ffef18423172ce564f8e98c8c06 100644 (file)
@@ -1869,7 +1869,9 @@ static char *cleanup_separated_string(char *str, char delim)
                }
                if (!esc) {
                        if (*ptr == '\'') {
-                               inside_quotes = (1 - inside_quotes);
+                               if ((inside_quotes = (1 - inside_quotes))) {
+                                       end = dest;
+                               }
                        } else {
                                *dest++ = *ptr;
                                if (*ptr != ' ' || inside_quotes) {