git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
395c366
)
allocate share_mode_str only when needed
author
Volker Lendecke
<vl@samba.org>
Fri, 4 Jan 2008 22:27:14 +0000
(23:27 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 4 Jan 2008 22:32:24 +0000
(23:32 +0100)
(This used to be commit
a98693bfa7bfe72ffa164d21b3e9636e268708aa
)
source3/locking/locking.c
patch
|
blob
|
history
diff --git
a/source3/locking/locking.c
b/source3/locking/locking.c
index dab21e53b3b5366fb73799bd71dff28635ccd8f6..270c6d22610a092ed8d6e087da429c795790c25c 100644
(file)
--- a/
source3/locking/locking.c
+++ b/
source3/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)) {