summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dbx_mdbx/src/dbsettings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/dbsettings.cpp b/plugins/Dbx_mdbx/src/dbsettings.cpp
index 2d85ef0779..6ca3049a72 100644
--- a/plugins/Dbx_mdbx/src/dbsettings.cpp
+++ b/plugins/Dbx_mdbx/src/dbsettings.cpp
@@ -129,6 +129,9 @@ LBL_Seek:
if (cc && cc->IsMeta() && ValidLookupName(szModule, szSetting)) {
if (contactID = db_mc_getDefault(contactID)) {
szModule = Proto_GetBaseAccountName(contactID);
+ if (szModule == nullptr) // smth went wrong
+ return 1;
+
moduleNameLen = strlen(szModule);
goto LBL_Seek;
}