summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 01:25:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:02 -0500
commit8beeeffd6ec2a31ab6e28ae38c92c92d5be3a8c1 (patch)
tree8c44af8ff486864fe5fa42d849abc56e68c11b92 /source3/smbd
parent49f6498a6f4efca5097e6338b14bcfe07a8261df (diff)
downloadsamba-8beeeffd6ec2a31ab6e28ae38c92c92d5be3a8c1.tar.gz
samba-8beeeffd6ec2a31ab6e28ae38c92c92d5be3a8c1.tar.bz2
samba-8beeeffd6ec2a31ab6e28ae38c92c92d5be3a8c1.zip
r16591: Belt and braces approach to shut Klocwork up - bug #2001.
Jeremy. (This used to be commit d5c1028498de0346b7a35cc132b8081e04e639cc)
Diffstat (limited to 'source3/smbd')
-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 1f523cc89f..7cbde3c59e 100644
--- a/source3/smbd/map_username.c
+++ b/source3/smbd/map_username.c
@@ -82,7 +82,7 @@ BOOL map_username(fstring user)
/* should be either no lines or a single line with the mapped username */
- if (numlines) {
+ if (numlines && qlines) {
DEBUG(3,("Mapped user %s to %s\n", user, qlines[0] ));
fstrcpy( user, qlines[0] );
}