Commit a018ee0
committed
tools/cgsnapshot: Fix Coverity uninitialized variable warning
Coverity reported the following uninitialized variable warning:
CID 465887: (#1 of 1): Uninitialized scalar variable (UNINIT)
32. uninit_use_in_call: Using uninitialized value *wl_file when calling load_list.
Fix the issue by initializing the char[] wl_file with '\0', and also
initialize dl_file similarly as a best practice.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>1 parent 4ce8819 commit a018ee0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | | - | |
| 746 | + | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| |||
0 commit comments