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>
Mon, 12 Apr 2010 11:18:17 +0000 (13:18 +0200)
source3/smbd/map_username.c

index 8b1e1dbd7c2ce3568685b5ec96cd48aebae98e63..8cbe40defd4fb3156fd1781965aa9c83137a76f2 100644 (file)
@@ -163,7 +163,7 @@ bool map_username(struct smbd_server_connection *sconn, fstring user)
                if ('!' == *unixname) {
                        return_if_mapped = True;
                        unixname++;
-                       while (*unixname && isspace((int)*unixname))
+                       while (isspace((int)*unixname))
                                unixname++;
                }