[Asterisk-cvs] asterisk/include/asterisk strings.h,1.12,1.13

russell russell
Wed Oct 26 15:01:35 CDT 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv18000/include/asterisk

Modified Files:
	strings.h 
Log Message:
change ast_strlen_zero to also check for the string to be defined


Index: strings.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/strings.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- strings.h	24 Oct 2005 20:12:06 -0000	1.12
+++ strings.h	26 Oct 2005 18:54:24 -0000	1.13
@@ -32,7 +32,7 @@
 
 static inline int ast_strlen_zero(const char *s)
 {
-	return (*s == '\0');
+	return (!s || (*s == '\0'));
 }
 
 /*!




More information about the svn-commits mailing list