Commit fb4a180
[viogpu] Initialize uninitialized members to prevent undefined behavior
- Zero m_SystemDisplayInfo in VioGpuDod::VioGpuDod()
- Initialize m_u64HostFeatures / m_u64GuestFeatures in VioGpuAdapter::VioGpuAdapter()
- Initialize CSessionMgr::m_hThread to NULL
Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>1 parent 271b7a8 commit fb4a180
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
2191 | 2192 | | |
2192 | 2193 | | |
2193 | 2194 | | |
| 2195 | + | |
| 2196 | + | |
2194 | 2197 | | |
2195 | 2198 | | |
2196 | 2199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments