[asterisk-commits] tilghman: branch 1.6.1 r142750 - in /branches/1.6.1: ./ main/app.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 12 11:57:28 CDT 2008


Author: tilghman
Date: Fri Sep 12 11:57:28 2008
New Revision: 142750

URL: http://svn.digium.com/view/asterisk?view=rev&rev=142750
Log:
Merged revisions 142748 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r142748 | tilghman | 2008-09-12 11:54:44 -0500 (Fri, 12 Sep 2008) | 3 lines

When checking for an encoded character, make sure the string isn't blank, first.
(Closes issue #13470)

........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/main/app.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/app.c?view=diff&rev=142750&r1=142749&r2=142750
==============================================================================
--- branches/1.6.1/main/app.c (original)
+++ branches/1.6.1/main/app.c Fri Sep 12 11:57:28 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