summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-08 20:12:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-08 20:12:26 +0300
commit8ffc77be71507825a8f7585bcabff8ccc370206a (patch)
treeaa13a8070f31286db6ad22e17a577e547942f951 /plugins/GmailNotifier/src
parent41b2fdfc654e3eec07c97ceba00cda13d988ffff (diff)
db_get_sa / db_get_wsa to receive the default value, massive code simplification
Diffstat (limited to 'plugins/GmailNotifier/src')
-rw-r--r--plugins/GmailNotifier/src/check.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/GmailNotifier/src/check.cpp b/plugins/GmailNotifier/src/check.cpp
index 88cafca600..ace11e7801 100644
--- a/plugins/GmailNotifier/src/check.cpp
+++ b/plugins/GmailNotifier/src/check.cpp
@@ -48,9 +48,7 @@ void CheckMailInbox(Account *curAcc)
curAcc->IsChecking = true;
- ptrA szNick(db_get_sa(curAcc->hContact, "CList", "MyHandle"));
- if (szNick == nullptr)
- szNick = mir_strdup(curAcc->name);
+ ptrA szNick(db_get_sa(curAcc->hContact, "CList", "MyHandle", curAcc->name));
char *tail = strstr(szNick, " [");
if (tail) *tail = 0;