aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2009-03-05 19:43:12 +0000
committerSven Hesse2009-03-05 19:43:12 +0000
commit2017d1c9ea12968e80a7aaeed1d9289f39c3a96e (patch)
treea95e8bfe15d502bcd1d9014b6712d8e5a7e8daab
parent047f116515e07cdebb54284a1078a6d581595158 (diff)
downloadscummvm-rg350-2017d1c9ea12968e80a7aaeed1d9289f39c3a96e.tar.gz
scummvm-rg350-2017d1c9ea12968e80a7aaeed1d9289f39c3a96e.tar.bz2
scummvm-rg350-2017d1c9ea12968e80a7aaeed1d9289f39c3a96e.zip
Added a missing NULLing
svn-id: r39134
-rw-r--r--engines/sci/scicore/decompress1.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/scicore/decompress1.cpp b/engines/sci/scicore/decompress1.cpp
index 6f3b310fa0..9bc95a05a3 100644
--- a/engines/sci/scicore/decompress1.cpp
+++ b/engines/sci/scicore/decompress1.cpp
@@ -306,6 +306,7 @@ int decompress1(Resource *result, Common::ReadStream &stream, int sci_version) {
if (stream.read(buffer, compressedLength) != compressedLength) {
free(result->data);
free(buffer);
+ result->data = 0;
return SCI_ERROR_IO_ERROR;
};