diff options
author | Jeremy Allison <jra@samba.org> | 2018-07-06 11:46:44 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-07-12 13:10:26 +0200 |
commit | 40c978434cae84b8d762025b954227e0fccfd8e4 (patch) | |
tree | 7a36471c447c50e3caafaf632f65439923e2ba9f | |
parent | c7bedb9c603ebcec339290ba475bc344928fbff5 (diff) | |
download | samba-40c978434cae84b8d762025b954227e0fccfd8e4.tar.gz |
libsmbclient: Initialize written value before use.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13511
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 2e4878a69a62fb59d843ee53a1a9469b987e3a59)
-rw-r--r-- | source3/libsmb/libsmb_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index 6b436768ecb..ebd0bfe422a 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -298,7 +298,7 @@ SMBC_splice_ctx(SMBCCTX *context, int (*splice_cb)(off_t n, void *priv), void *priv) { - off_t written; + off_t written = 0; TALLOC_CTX *frame = talloc_stackframe(); NTSTATUS status; |