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:
parent
e8b7aecf46
commit
2e4878a69a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user