[asterisk-commits] dbailey: trunk r177035 - /trunk/main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 18 11:24:07 CST 2009
Author: dbailey
Date: Wed Feb 18 11:24:07 2009
New Revision: 177035
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177035
Log:
Fixed error where a check for an zero length, terminated string was needed.
Modified:
trunk/main/utils.c
Modified: trunk/main/utils.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/utils.c?view=diff&rev=177035&r1=177034&r2=177035
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Wed Feb 18 11:24:07 2009
@@ -1598,7 +1598,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