[asterisk-commits] tilghman: branch 1.4 r51195 - in /branches/1.4: ./ main/utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 17 13:56:15 MST 2007


Author: tilghman
Date: Wed Jan 17 14:56:15 2007
New Revision: 51195

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51195
Log:
Merged revisions 51194 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r51194 | tilghman | 2007-01-17 14:52:21 -0600 (Wed, 17 Jan 2007) | 4 lines

When ast_strip_quoted was called with a zero-length string, it would treat a
NULL as if it were the quoting character (and would thus return the string
in memory immediately following the passed-in string).

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/utils.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?view=diff&rev=51195&r1=51194&r2=51195
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Wed Jan 17 14:56:15 2007
@@ -638,7 +638,7 @@
 	char *q;
 
 	s = ast_strip(s);
-	if ((q = strchr(beg_quotes, *s))) {
+	if ((q = strchr(beg_quotes, *s)) && *q != '\0') {
 		e = s + strlen(s) - 1;
 		if (*e == *(end_quotes + (q - beg_quotes))) {
 			s++;



More information about the asterisk-commits mailing list