diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:19:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:19:28 +0300 |
commit | a3b2076ba0b398523c3e0428c2400184e83c4f62 (patch) | |
tree | ae13ed62556e9b7343b9330089fa3dad2a8b67d2 /src/utils | |
parent | 6f23241ba9d7d908534dade0e03041486a970ddc (diff) | |
download | mv-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.gz mv-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.bz2 mv-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.xz mv-a3b2076ba0b398523c3e0428c2400184e83c4f62.zip |
Last fixes after Coverity checks.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/translation/poparser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index d4426a2e3..dc201d4b3 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -41,6 +41,8 @@ PoParser::PoParser() : void PoParser::openFile(std::string name) { const ResourceManager *const resman = ResourceManager::getInstance(); + if (!resman) + return; int size; char *buf = static_cast<char*>(resman->loadFile(getFileName(name), size)); |