summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
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;
}