s3: Remove a bogus 0-check, "isspace" can not return true for \0
authorVolker Lendecke <vl@samba.org>
Fri, 9 Apr 2010 12:28:44 +0000 (14:28 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2010 06:57:26 +0000 (08:57 +0200)
source3/smbd/map_username.c

index 468e20ad129f6b6aff377984b6b77c813976df41..53e836935343055f16ed0f767104dda8d0f119e7 100644 (file)
@@ -163,7 +163,7 @@ bool map_username(fstring user)
                if ('!' == *unixname) {
                        return_if_mapped = True;
                        unixname++;
-                       while (*unixname && isspace((int)*unixname))
+                       while (isspace((int)*unixname))
                                unixname++;
                }