From: Andreas Schneider Date: Mon, 15 Jun 2020 08:46:12 +0000 (+0200) Subject: s3:lib: Make sure that have_rsrc is initialized X-Git-Tag: ldb-2.2.0~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a2fae2d4793c45b6d70878a100cddb57475bbad;p=thirdparty%2Fsamba.git s3:lib: Make sure that have_rsrc is initialized This is never set to false, only to true in the code. Found by clang. Signed-off-by: Andreas Schneider Reviewed-by: Isaac Boukris Autobuild-User(master): Isaac Boukris Autobuild-Date(master): Tue Jun 16 10:30:17 UTC 2020 on sn-devel-184 --- diff --git a/source3/lib/adouble.c b/source3/lib/adouble.c index a7e7e533ad0..42b2e808d66 100644 --- a/source3/lib/adouble.c +++ b/source3/lib/adouble.c @@ -1842,7 +1842,7 @@ bool ad_unconvert(TALLOC_CTX *mem_ctx, struct adouble *ad = NULL; unsigned int num_streams = 0; size_t to_convert = 0; - bool have_rsrc; + bool have_rsrc = false; files_struct *fsp = NULL; size_t i; NTSTATUS status;