smbstatus: Fix an uninitialized variable
commit74a80557f6d9b7a85656ec701ab70eb091fe2e11
authorVolker Lendecke <vl@samba.org>
Sun, 29 Jun 2014 08:56:03 +0000 (29 08:56 +0000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:11 +0000 (15 12:46 +0200)
tree9940831900b53457b044928ea32eaa7a23e1d735
parenta9dcd0201eba2f744bf4fdd5d5720cc5c11b66ab
smbstatus: Fix an uninitialized variable

We only print valid share mode entries, stale ones don't count. In
traverse, let the callback decide about staleness.

https://bugzilla.samba.org/show_bug.cgi?id=10680

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 9f2e90754bcb7bf5f7159d07f0bc5fe754e71bf5)
source3/locking/share_mode_lock.c