From 58e00365c6b36454ab1c4d6409a5094a6de154f2 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vlendec@samba.org>
Date: Fri, 10 Mar 2006 08:53:15 +0000
Subject: r14132: Fix Coverity bug # 150.

Jerry, you might want to check this.

Thanks

Volker
(This used to be commit 9ec671c2f8547482ed08eb17a0fb771ef8fd1e51)
---
 source3/services/services_db.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index 6c38c6ed0a..5b4f58d766 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -160,7 +160,7 @@ static char* cleanup_string( const char *string )
 	while ( isspace(*begin) )
 		begin++;
 
-	if ( !begin )
+	if ( *begin == '\0' )
 		return NULL;
 			
 	/* trim any trailing whitespace or carriage returns.
-- 
cgit