mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
CINE: Fix for possible uninitialized variable usage. CID 1086890.
This commit is contained in:
parent
71420a658e
commit
93e5f1fddc
@ -380,8 +380,7 @@ RawScript::RawScript(const FWScriptInfo &info, const byte *data, uint16 s) :
|
||||
* Copy constructor
|
||||
*/
|
||||
RawScript::RawScript(const RawScript &src) : _size(src._size),
|
||||
_data(new byte[_size + 1]), _labels(src._labels) {
|
||||
|
||||
_data(new byte[src._size + 1]), _labels(src._labels) {
|
||||
assert(_data);
|
||||
memcpy(_data, src._data, _size + 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user