diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 16:35:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:20 +0300 |
commit | 41238c8f7ab88b2f3ef51a5e1ead58d3ba505c5b (patch) | |
tree | 71560ac2a05601c1c294f4f9f058b340239d89ae /src | |
parent | 2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962 (diff) | |
download | manaverse-41238c8f7ab88b2f3ef51a5e1ead58d3ba505c5b.tar.gz manaverse-41238c8f7ab88b2f3ef51a5e1ead58d3ba505c5b.tar.bz2 manaverse-41238c8f7ab88b2f3ef51a5e1ead58d3ba505c5b.tar.xz manaverse-41238c8f7ab88b2f3ef51a5e1ead58d3ba505c5b.zip |
add missing initialisation in mapreader.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 1382e66af..95da2ae36 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -193,7 +193,7 @@ Map *MapReader::readMap(const std::string &filename, return createEmptyMap(filename, realFilename); } - unsigned char *inflated; + unsigned char *inflated = nullptr; unsigned int inflatedSize; if (realFilename.find(".gz", realFilename.length() - 3) @@ -563,7 +563,7 @@ bool MapReader::readBase64Layer(const XmlNodePtr childNode, Map *const map, if (compression == "gzip" || compression == "zlib") { // Inflate the gzipped layer data - unsigned char *inflated; + unsigned char *inflated = nullptr; const unsigned int inflatedSize = inflateMemory(binData, binLen, inflated); |