diff options
| author | 2017-02-13 21:41:59 -0800 | |
|---|---|---|
| committer | 2017-02-13 21:41:59 -0800 | |
| commit | 070daf412604e205fbb717dc80b41fa74034293b (patch) | |
| tree | b3b4d04557cf9b7c42811ab7ca8295ebad439810 /src | |
| parent | Merge pull request #2542 from jfmherokiller/httpsvclog (diff) | |
| download | yuzu-070daf412604e205fbb717dc80b41fa74034293b.tar.gz yuzu-070daf412604e205fbb717dc80b41fa74034293b.tar.xz yuzu-070daf412604e205fbb717dc80b41fa74034293b.zip | |
HLE/IPC: Fix uninitialized variables in helpers (#2568)
Fixes #2567
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/ipc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h index 4535b61c0..bbaae8b79 100644 --- a/src/core/hle/ipc.h +++ b/src/core/hle/ipc.h | |||
| @@ -77,7 +77,7 @@ union Header { | |||
| 77 | */ | 77 | */ |
| 78 | inline u32 MakeHeader(u16 command_id, unsigned int normal_params_size, | 78 | inline u32 MakeHeader(u16 command_id, unsigned int normal_params_size, |
| 79 | unsigned int translate_params_size) { | 79 | unsigned int translate_params_size) { |
| 80 | Header header; | 80 | Header header{}; |
| 81 | header.command_id.Assign(command_id); | 81 | header.command_id.Assign(command_id); |
| 82 | header.normal_params_size.Assign(normal_params_size); | 82 | header.normal_params_size.Assign(normal_params_size); |
| 83 | header.translate_params_size.Assign(translate_params_size); | 83 | header.translate_params_size.Assign(translate_params_size); |
| @@ -112,7 +112,7 @@ union StaticBufferDescInfo { | |||
| 112 | }; | 112 | }; |
| 113 | 113 | ||
| 114 | inline u32 StaticBufferDesc(u32 size, u8 buffer_id) { | 114 | inline u32 StaticBufferDesc(u32 size, u8 buffer_id) { |
| 115 | StaticBufferDescInfo info; | 115 | StaticBufferDescInfo info{}; |
| 116 | info.descriptor_type.Assign(StaticBuffer); | 116 | info.descriptor_type.Assign(StaticBuffer); |
| 117 | info.buffer_id.Assign(buffer_id); | 117 | info.buffer_id.Assign(buffer_id); |
| 118 | info.size.Assign(size); | 118 | info.size.Assign(size); |
| @@ -150,7 +150,7 @@ union MappedBufferDescInfo { | |||
| 150 | }; | 150 | }; |
| 151 | 151 | ||
| 152 | inline u32 MappedBufferDesc(u32 size, MappedBufferPermissions perms) { | 152 | inline u32 MappedBufferDesc(u32 size, MappedBufferPermissions perms) { |
| 153 | MappedBufferDescInfo info; | 153 | MappedBufferDescInfo info{}; |
| 154 | info.flags.Assign(MappedBuffer); | 154 | info.flags.Assign(MappedBuffer); |
| 155 | info.perms.Assign(perms); | 155 | info.perms.Assign(perms); |
| 156 | info.size.Assign(size); | 156 | info.size.Assign(size); |