[asterisk-commits] tilghman: branch 1.6.0 r142749 - in /branches/1.6.0: ./ main/app.c

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


Author: tilghman
Date: Fri Sep 12 11:56:49 2008
New Revision: 142749

URL: http://svn.digium.com/view/asterisk?view=rev&rev=142749
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.0/   (props changed)
    branches/1.6.0/main/app.c

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

Modified: branches/1.6.0/main/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/app.c?view=diff&rev=142749&r1=142748&r2=142749
==============================================================================
--- branches/1.6.0/main/app.c (original)
+++ branches/1.6.0/main/app.c Fri Sep 12 11:56:49 2008
@@ -1703,6 +1703,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