diff options
Diffstat (limited to 'source3/services/services_db.c')
-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. |