diff options
author | Jeremy Allison <jra@samba.org> | 2006-01-27 19:59:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-01-27 19:59:48 +0000 |
commit | f513fbb1b6a0ff7865cce4f9d8530bce6a64fea6 (patch) | |
tree | a21d2f965e7bb7b9ed93588a58e5318319a2baa2 /source | |
parent | 74a8af4bc57c28facf4da25f6b1e850ed9369471 (diff) | |
download | samba-f513fbb1b6a0ff7865cce4f9d8530bce6a64fea6.tar.gz samba-f513fbb1b6a0ff7865cce4f9d8530bce6a64fea6.tar.xz samba-f513fbb1b6a0ff7865cce4f9d8530bce6a64fea6.zip |
r13194: Don't do extra memcpy's unless we're asked to.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/locking/locking.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index 770ef918b89..be1e83121b7 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -547,7 +547,11 @@ static TDB_DATA unparse_share_modes(struct share_mode_lock *lck) 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; } |