[asterisk-commits] dbailey: branch 1.4 r177039 - /branches/1.4/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 18 11:41:05 CST 2009


Author: dbailey
Date: Wed Feb 18 11:41:05 2009
New Revision: 177039

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177039
Log:
Merged revisions 177035 manually from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177035 | dbailey | 2009-02-18 11:24:07 -0600 (Wed, 18 Feb 2009) | 2 lines
  
  Fixed error where a check for an zero length, terminated string was needed.
........

Modified:
    branches/1.4/main/utils.c

Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/utils.c?view=diff&rev=177039&r1=177038&r2=177039
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Wed Feb 18 11:41:05 2009
@@ -1263,7 +1263,7 @@
 	   otherwise, use the empty space at the end of the current
 	   pool
 	*/
-	if (fields[index][0] != '0') {
+	if (fields[index][0] != '\0') {
 		target = (char *) fields[index];
 		available = strlen(fields[index]) + 1;
 	} else {




More information about the asterisk-commits mailing list