Author: jra Date: 2006-06-28 01:25:24 +0000 (Wed, 28 Jun 2006) New Revision: 16590
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16590 Log: Belt and braces approach to shut Klocwork up - bug #2001. Jeremy. Modified: trunk/source/smbd/map_username.c Changeset: Modified: trunk/source/smbd/map_username.c =================================================================== --- trunk/source/smbd/map_username.c 2006-06-28 01:21:54 UTC (rev 16589) +++ trunk/source/smbd/map_username.c 2006-06-28 01:25:24 UTC (rev 16590) @@ -82,7 +82,7 @@ /* 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] ); }