]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ntvfs: Fix Coverity ID 240792 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Thu, 14 Nov 2024 20:07:30 +0000 (21:07 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 19 Nov 2024 18:11:29 +0000 (18:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/ntvfs/ipc/ipc_rap.c

index 40134fdc9ad16c22aea51c59c9086e3eb9c3a237..95be64fe7b65c79e8011f7c64b1b5e4d0f891e6d 100644 (file)
@@ -253,7 +253,7 @@ static NTSTATUS rap_push_string(struct ndr_push *data_push,
 
 static NTSTATUS _rap_netshareenum(struct rap_call *call)
 {
-       struct rap_NetShareEnum r;
+       struct rap_NetShareEnum r = {};
        NTSTATUS result;
        uint32_t offset_save = 0;
        struct rap_heap_save heap_save = {0};