[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-unstable-1087-ga98693b
Volker Lendecke
vl at samba.org
Fri Jan 4 22:29:40 GMT 2008
The branch, v3-2-test has been updated
via a98693bfa7bfe72ffa164d21b3e9636e268708aa (commit)
from fe75e5ccdfc2609380367e59215637b0de1ef241 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit a98693bfa7bfe72ffa164d21b3e9636e268708aa
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jan 4 23:27:14 2008 +0100
allocate share_mode_str only when needed
-----------------------------------------------------------------------
Summary of changes:
source/locking/locking.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/locking/locking.c b/source/locking/locking.c
index dab21e5..270c6d2 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -608,7 +608,10 @@ static bool parse_share_modes(TDB_DATA dbuf, struct share_mode_lock *lck)
for (i = 0; i < lck->num_share_modes; i++) {
struct share_mode_entry *entry_p = &lck->share_modes[i];
- char *str = share_mode_str(NULL, i, entry_p);
+ char *str = NULL;
+ if (DEBUGLEVEL >= 10) {
+ str = share_mode_str(NULL, i, entry_p);
+ }
DEBUG(10,("parse_share_modes: %s\n",
str ? str : ""));
if (!process_exists(entry_p->pid)) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list