svn commit: samba r14132 - branches/SAMBA_3_0/source/services trunk/source/services

vlendec at samba.org vlendec at samba.org
Fri Mar 10 08:53:15 GMT 2006


Author: vlendec
Date: 2006-03-10 08:53:15 +0000 (Fri, 10 Mar 2006)
New Revision: 14132

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14132

Log:
Fix Coverity bug # 150.

Jerry, you might want to check this.

Thanks

Volker

Modified:
   branches/SAMBA_3_0/source/services/services_db.c
   trunk/source/services/services_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/services/services_db.c
===================================================================
--- branches/SAMBA_3_0/source/services/services_db.c	2006-03-10 08:47:59 UTC (rev 14131)
+++ branches/SAMBA_3_0/source/services/services_db.c	2006-03-10 08:53:15 UTC (rev 14132)
@@ -160,7 +160,7 @@
 	while ( isspace(*begin) )
 		begin++;
 
-	if ( !begin )
+	if ( *begin == '\0' )
 		return NULL;
 			
 	/* trim any trailing whitespace or carriage returns.

Modified: trunk/source/services/services_db.c
===================================================================
--- trunk/source/services/services_db.c	2006-03-10 08:47:59 UTC (rev 14131)
+++ trunk/source/services/services_db.c	2006-03-10 08:53:15 UTC (rev 14132)
@@ -160,7 +160,7 @@
 	while ( isspace(*begin) )
 		begin++;
 
-	if ( !begin )
+	if ( *begin == '\0' )
 		return NULL;
 			
 	/* trim any trailing whitespace or carriage returns.



More information about the samba-cvs mailing list