summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2012-09-22 00:11:16 +0200
committererihel <erihel@gmail.com>2012-09-22 00:11:16 +0200
commit15ff1d512b9e103396144bec1cd8004ecf4f7f9c (patch)
treedf57c12ca30d8691c40b7041a35c8deac253ad21 /src/common
parentf5bc8e12d477a91c7d950675af81e074a94d6036 (diff)
downloadcolobot-15ff1d512b9e103396144bec1cd8004ecf4f7f9c.tar.gz
colobot-15ff1d512b9e103396144bec1cd8004ecf4f7f9c.tar.bz2
colobot-15ff1d512b9e103396144bec1cd8004ecf4f7f9c.zip
* Fixed audio problems
* Added colobot.ini to CApp in Create function * Fixes to plugin manager * Fixed CProfile segfault
Diffstat (limited to 'src/common')
-rw-r--r--src/common/profile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/profile.cpp b/src/common/profile.cpp
index efcfa66..1025567 100644
--- a/src/common/profile.cpp
+++ b/src/common/profile.cpp
@@ -57,7 +57,7 @@ bool CProfile::SetLocalProfileString(std::string section, std::string key, std::
bool CProfile::GetLocalProfileString(std::string section, std::string key, std::string &buffer)
{
const char* value = m_ini->GetValue(section.c_str(), key.c_str(), nullptr);
- if (strlen(value) > 0) {
+ if (value != nullptr && strlen(value) > 0) {
buffer = std::string(value);
return true;
}