mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
rdoff: search_libraries - zeroify stack allocated structure
Coverity scan tool complains on rdffile::rdoff_ver member being called with memcpy uninitialized. Lets zap this structure explicitly once we've it allocated. CID 1432931 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
6f01aca07c
commit
858bc9d6b9
@ -606,6 +606,7 @@ static int search_libraries(void)
|
||||
|
||||
cur = libraries;
|
||||
|
||||
memset(&f, 0, sizeof(f));
|
||||
while (cur) {
|
||||
if (options.verbose > 2)
|
||||
printf("scanning library `%s', pass %d...\n", cur->name, pass);
|
||||
|
Loading…
Reference in New Issue
Block a user