summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:28 +0300
commita3b2076ba0b398523c3e0428c2400184e83c4f62 (patch)
treeae13ed62556e9b7343b9330089fa3dad2a8b67d2 /src/utils
parent6f23241ba9d7d908534dade0e03041486a970ddc (diff)
downloadplus-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.gz
plus-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.bz2
plus-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.xz
plus-a3b2076ba0b398523c3e0428c2400184e83c4f62.zip
Last fixes after Coverity checks.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/poparser.cpp2
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));