diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-07 21:24:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-07 21:24:19 +0300 |
commit | 216c2f0e6898b9447434c26691722686ddf022fd (patch) | |
tree | 1881f680ea1027146b9e8c3fe4e5a9f02950e029 /plugins | |
parent | 0f8396dd2266cb169797d24bb738d9ff45a003d5 (diff) |
fix for rare crash in meta contacts
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbsettings.cpp | 3 |
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;
}
|