s3:lib: Make sure that have_rsrc is initialized
authorAndreas Schneider <asn@samba.org>
Mon, 15 Jun 2020 08:46:12 +0000 (10:46 +0200)
committerIsaac Boukris <iboukris@sn-devel-184>
Tue, 16 Jun 2020 10:30:16 +0000 (10:30 +0000)
This is never set to false, only to true in the code.

Found by clang.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Autobuild-User(master): Isaac Boukris <iboukris@samba.org>
Autobuild-Date(master): Tue Jun 16 10:30:17 UTC 2020 on sn-devel-184

source3/lib/adouble.c

index a7e7e533ad0c91918f6a0cc350cd0a70d95068b3..42b2e808d66743a92b7c0028b88e65e4d09012a4 100644 (file)
@@ -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;