summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-10-03 18:06:17 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-10-03 18:06:17 +0000
commit5cc4efdb400e1c27c705cddae25a416d5c26e99d (patch)
tree26e4be6eb4e11c85f53594eb56669bffa0727e01 /plugins/MyDetails/src
parenta449aba4c79e1695898bcbd38394f003fb51d48e (diff)
MyDetails: coverity fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15504 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src')
-rw-r--r--plugins/MyDetails/src/services.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/services.cpp b/plugins/MyDetails/src/services.cpp
index 2cb64f53bd..f4e3d4f616 100644
--- a/plugins/MyDetails/src/services.cpp
+++ b/plugins/MyDetails/src/services.cpp
@@ -274,7 +274,7 @@ INT_PTR PluginCommand_GetMyAvatar(WPARAM wParam, LPARAM lParam)
protocols->Get(i)->GetAvatar();
- if (protocols->Get(i)->avatar_file != NULL)
+ if (mir_tstrlen(protocols->Get(i)->avatar_file))
mir_tstrncpy(ret, protocols->Get(i)->avatar_file, MS_MYDETAILS_GETMYAVATAR_BUFFER_SIZE);
else
ret[0] = '\0';
@@ -429,7 +429,7 @@ INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam)
else
CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, protocols->GetGlobalStatus(), NULL);
return 0;
- }
+ } // fallthrough
if (proto == NULL || proto->status != ID_STATUS_OFFLINE) {
if (!status_msg_dialog_open) {