]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
A dollar sign by itself, not indicating a start of a variable or expression premature...
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 11 Oct 2007 04:35:33 +0000 (04:35 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 11 Oct 2007 04:35:33 +0000 (04:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85356 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 76af9567d729d1b1d124d9f0de01ed05da2128b0..120cfa7d4acb879dc6d48c8fa5ce7a98b8234351 100644 (file)
@@ -1573,6 +1573,8 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
                                nextexp = nextthing;
                                pos = nextexp - whereweare;
                                break;
+                       default:
+                               pos = 1;
                        }
                }
 
@@ -1731,8 +1733,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
                                count -= length;
                                cp2 += length;
                        }
-               } else
-                       break;
+               }
        }
 }