Author: jra Date: 2006-01-27 20:00:15 +0000 (Fri, 27 Jan 2006) New Revision: 13195
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13195 Log: Don't do extra memcpy's unless we're asked to. Jeremy. Modified: trunk/source/locking/locking.c Changeset: Modified: trunk/source/locking/locking.c =================================================================== --- trunk/source/locking/locking.c 2006-01-27 19:59:48 UTC (rev 13194) +++ trunk/source/locking/locking.c 2006-01-27 20:00:15 UTC (rev 13195) @@ -547,7 +547,11 @@ offset += sp_len + 1; safe_strcpy(result.dptr + offset, lck->filename, result.dsize - offset - 1); - print_share_mode_table(data); + + if (DEBUGLEVEL >= 10) { + print_share_mode_table(data); + } + return result; }