From: Volker Lendecke Date: Fri, 10 Mar 2006 08:53:15 +0000 (+0000) Subject: r14132: Fix Coverity bug # 150. X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=58e00365c6b36454ab1c4d6409a5094a6de154f2 r14132: Fix Coverity bug # 150. Jerry, you might want to check this. Thanks Volker (This used to be commit 9ec671c2f8547482ed08eb17a0fb771ef8fd1e51) --- diff --git a/source3/services/services_db.c b/source3/services/services_db.c index 6c38c6ed0a9..5b4f58d766d 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.