diff options
author | Christopher R. Hertel (crh) <crh@samba.org> | 2014-02-12 14:08:12 -0600 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-02-12 23:57:05 +0100 |
commit | 9abf1623ed2384d529ef3a2442a55fb293dee8b0 (patch) | |
tree | ece6f0bb78d74fac21223447bc84c18d94e437a4 /source3 | |
parent | 69594dfb8cfa35612ff9ce96f9669d7ed94ad578 (diff) | |
download | samba-9abf1623ed2384d529ef3a2442a55fb293dee8b0.tar.gz samba-9abf1623ed2384d529ef3a2442a55fb293dee8b0.tar.xz samba-9abf1623ed2384d529ef3a2442a55fb293dee8b0.zip |
smbXsrv_open.c: Initialize local variable.
Coverity fix. Initialize status to NT_STATUS_OK. Otherwise, there are
code paths that would cause the smbXsrv_open_cleanup() function to
return an uninitialized value.
Cov: 1168008
Signed-off-by: Christopher R. Hertel (crh) <crh@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Feb 12 23:57:05 CET 2014 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smbXsrv_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smbXsrv_open.c b/source3/smbd/smbXsrv_open.c index 7e6b54fc08..b15be28769 100644 --- a/source3/smbd/smbXsrv_open.c +++ b/source3/smbd/smbXsrv_open.c @@ -1384,7 +1384,7 @@ NTSTATUS smbXsrv_open_global_traverse( NTSTATUS smbXsrv_open_cleanup(uint64_t persistent_id) { - NTSTATUS status; + NTSTATUS status = NT_STATUS_OK; TALLOC_CTX *frame = talloc_stackframe(); struct smbXsrv_open_global0 *op = NULL; uint8_t key_buf[SMBXSRV_OPEN_GLOBAL_TDB_KEY_SIZE]; |