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:
Cyrill Gorcunov 2020-10-04 23:35:55 +03:00
parent 6f01aca07c
commit 858bc9d6b9

View file

@ -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);