diff options
author | Matthew Hoops | 2011-03-07 13:14:10 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-03-07 13:14:10 -0500 |
commit | c7d7e50155ddcbca6fc2143e255b6618a628db7f (patch) | |
tree | ff11d70cf741850d58a399c9a56e573344283a23 /common | |
parent | d2f8103a3bc6f719e57a7f06e9350e08def3e90c (diff) | |
download | scummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.tar.gz scummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.tar.bz2 scummvm-rg350-c7d7e50155ddcbca6fc2143e255b6618a628db7f.zip |
COMMON: Add a sanity assert
Diffstat (limited to 'common')
-rw-r--r-- | common/winexe_ne.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/winexe_ne.cpp b/common/winexe_ne.cpp index eedda1ec66..dbb982e0ee 100644 --- a/common/winexe_ne.cpp +++ b/common/winexe_ne.cpp @@ -111,6 +111,7 @@ bool NEResources::loadFromCompressedEXE(const String &fileName) { memset(window, 0x20, 0x1000); // Initialize to all spaces byte *unpackedData = (byte *)malloc(unpackedLength); + assert(unpackedData); byte *dataPos = unpackedData; // Apply simple LZSS decompression |