1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

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>
This commit is contained in:
Jeremy Allison 2018-07-06 11:46:44 -07:00 committed by David Disseldorp
parent e8b7aecf46
commit 2e4878a69a

View File

@ -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;