Commit 9ff2f9f
committed
misc: initialize memory before using in tests
valgrind complains about accessing not inialized data.
Running test copy...==4327== Conditional jump or move depends on uninitialised value(s)
==4327== at 0x484E89E: bcmp (vg_replace_strmem.c:1234)
==4327== by 0x485D217: cmp (util.c:41)
==4327== by 0x485CE3C: ioctl (mock.c:188)
==4327== by 0x4870D1A: nvme_submit_passthru32 (ioctl.c:136)
==4327== by 0x4870EC3: nvme_submit_io_passthru (ioctl.c:183)
==4327== by 0x405595: test_copy (misc.c:1014)
==4327== by 0x406968: run_test (misc.c:1382)
==4327== by 0x406BF4: main (misc.c:1433)
Signed-off-by: Daniel Wagner <[email protected]>1 parent b1e49af commit 9ff2f9f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
| 992 | + | |
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
| |||
0 commit comments