summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/map_username.c2
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++;
}