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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue