CINE: Fix for possible uninitialized variable usage. CID 1086890.

This commit is contained in:
D G Turner 2013-10-02 05:09:03 +01:00
parent 71420a658e
commit 93e5f1fddc

View File

@ -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);
}