diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-10 08:53:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:12 -0500 |
commit | 58e00365c6b36454ab1c4d6409a5094a6de154f2 (patch) | |
tree | 699262e7646d9ac186878f5c2a2a6e7a7e1cf98c | |
parent | 645826673a0264f808cc2e52f8ed28bc28760858 (diff) | |
download | samba-58e00365c6b36454ab1c4d6409a5094a6de154f2.tar.gz samba-58e00365c6b36454ab1c4d6409a5094a6de154f2.tar.bz2 samba-58e00365c6b36454ab1c4d6409a5094a6de154f2.zip |
r14132: Fix Coverity bug # 150.
Jerry, you might want to check this.
Thanks
Volker
(This used to be commit 9ec671c2f8547482ed08eb17a0fb771ef8fd1e51)
-rw-r--r-- | source3/services/services_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |