From 8beeeffd6ec2a31ab6e28ae38c92c92d5be3a8c1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Jun 2006 01:25:29 +0000 Subject: r16591: Belt and braces approach to shut Klocwork up - bug #2001. Jeremy. (This used to be commit d5c1028498de0346b7a35cc132b8081e04e639cc) --- source3/smbd/map_username.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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] ); } -- cgit