diff options
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index fc4ce725c5..156ff016ea 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -227,6 +227,8 @@ int get_share_modes(connection_struct *conn, struct locking_data *data; int ret; + *shares = NULL; + dbuf = tdb_fetch(tdb, locking_key(dev, inode)); if (!dbuf.dptr) return 0; |