[asterisk-commits] dbailey: branch 1.6.0 r177038 - in /branches/1.6.0: ./ main/utils.c

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


Author: dbailey
Date: Wed Feb 18 11:26:59 2009
New Revision: 177038

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177038
Log:
Merged revisions 177035 via svnmerge 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.6.0/   (props changed)
    branches/1.6.0/main/utils.c

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

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




More information about the asterisk-commits mailing list