diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-09 14:28:44 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-12 13:18:17 +0200 |
commit | 8c3fa1668654f482168e0c565458e701c23d4d9b (patch) | |
tree | f480af51e434bd778c57796521928bd19737aedf /source3/smbd/map_username.c | |
parent | 757766d5af54e116bb08f0d825e51741f3ee9e05 (diff) | |
download | samba-8c3fa1668654f482168e0c565458e701c23d4d9b.tar.gz samba-8c3fa1668654f482168e0c565458e701c23d4d9b.tar.bz2 samba-8c3fa1668654f482168e0c565458e701c23d4d9b.zip |
s3: Remove a bogus 0-check, "isspace" can not return true for \0
Diffstat (limited to 'source3/smbd/map_username.c')
-rw-r--r-- | source3/smbd/map_username.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index 8b1e1dbd7c..8cbe40defd 100644 --- a/source3/smbd/map_username.c +++ b/source3/smbd/map_username.c @@ -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++; } |