[asterisk-commits] tilghman: trunk r142748 - /trunk/main/app.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 12 11:54:44 CDT 2008
Author: tilghman
Date: Fri Sep 12 11:54:44 2008
New Revision: 142748
URL: http://svn.digium.com/view/asterisk?view=rev&rev=142748
Log:
When checking for an encoded character, make sure the string isn't blank, first.
Modified:
trunk/main/app.c
Modified: trunk/main/app.c
URL: http://svn.digium.com/view/asterisk/trunk/main/app.c?view=diff&rev=142748&r1=142747&r2=142748
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Fri Sep 12 11:54:44 2008
@@ -1748,6 +1748,11 @@
int i;
*consumed = 1;
*result = 0;
+ if (ast_strlen_zero(stream)) {
+ *consumed = 0;
+ return -1;
+ }
+
if (*stream == '\\') {
*consumed = 2;
switch (*(stream + 1)) {
More information about the asterisk-commits
mailing list