From 5cc4efdb400e1c27c705cddae25a416d5c26e99d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 3 Oct 2015 18:06:17 +0000 Subject: MyDetails: coverity fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15504 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/services.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MyDetails/src') 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) { -- cgit v1.2.3