mirror of
https://github.com/samba-team/samba.git
synced 2025-08-07 09:49:30 +03:00
Fix a valgrind error
This commit is contained in:
committed by
Jeremy Allison
parent
8b0bee7c76
commit
b82120f9b7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user