summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-18 14:24:54 +0100
committerJeremy Allison <jra@samba.org>2007-11-18 15:08:52 -0800
commit3546d5c099981fede0b29136b3d92145a988a558 (patch)
tree87eaafda417fb30aaeb4ae3481f1529bb8e3d3fc /source3
parentf8b9e720b2f2eb29f241d2ff9808f2f29ee603b0 (diff)
downloadsamba-3546d5c099981fede0b29136b3d92145a988a558.tar.gz
samba-3546d5c099981fede0b29136b3d92145a988a558.tar.bz2
samba-3546d5c099981fede0b29136b3d92145a988a558.zip
Fix a valgrind error
(This used to be commit b82120f9b7f5aad83d8b4ece0261e9693eedca0c)
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/locking.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 8d511e9d8f..0cedff36e4 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -472,11 +472,12 @@ static void print_share_mode_table(struct locking_data *data)
for (i = 0; i < num_share_modes; i++) {
struct share_mode_entry entry;
- char *str = share_mode_str(NULL, i, &entry);
+ char *str;
memcpy(&entry, &shares[i], sizeof(struct share_mode_entry));
- DEBUG(10,("print_share_mode_table: %s\n",
- str ? str : ""));
+ str = share_mode_str(NULL, i, &entry);
+
+ DEBUG(10,("print_share_mode_table: %s\n", str ? str : ""));
TALLOC_FREE(str);
}
}