diff options
author | Volker Lendecke <vl@samba.org> | 2016-04-12 07:49:40 +0200 |
---|---|---|
committer | Uri Simchoni <uri@samba.org> | 2016-04-12 11:39:34 +0200 |
commit | e6ed803a3ba8df05271fd12f1bc7abf667e27a86 (patch) | |
tree | 924af57ccf03159b85eef4ca03a4f673d814b4fe /lib | |
parent | acf6deb6981f3e4043b51c1ed134362cc9112d2c (diff) | |
download | samba-e6ed803a3ba8df05271fd12f1bc7abf667e27a86.tar.gz |
tdb mutex check: Fix CID 1358473 Uninitialized scalar variable
This comes via a "goto cleanup" before suspend_mask is initialized
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Tue Apr 12 11:39:35 CEST 2016 on sn-devel-144
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/common/mutex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tdb/common/mutex.c b/lib/tdb/common/mutex.c index d8167bedd27..c2128427468 100644 --- a/lib/tdb/common/mutex.c +++ b/lib/tdb/common/mutex.c @@ -786,6 +786,8 @@ _PUBLIC_ bool tdb_runtime_check_for_robust_mutexes(void) initialized = true; + sigemptyset(&suspend_mask); + ok = tdb_mutex_locking_supported(); if (!ok) { return false; |