From 41f218316dce6b1bfcfb0f2754379fa74c5138ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2013 14:35:34 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/poll.cpp | 8 +++----- plugins/AVS/src/utils.cpp | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/poll.cpp b/plugins/AVS/src/poll.cpp index 22968fe5a0..840c3d78b9 100644 --- a/plugins/AVS/src/poll.cpp +++ b/plugins/AVS/src/poll.cpp @@ -136,11 +136,9 @@ static void QueueAdd(HANDLE hContact, int waitTime) return; QueueItem *item = new QueueItem; - if (item != NULL) { - item->hContact = hContact; - item->check_time = GetTickCount() + waitTime; - queue.insert(item); - } + item->hContact = hContact; + item->check_time = GetTickCount() + waitTime; + queue.insert(item); } // Add an contact to a queue diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp index 7aa9f205d3..ab79fc7b85 100644 --- a/plugins/AVS/src/utils.cpp +++ b/plugins/AVS/src/utils.cpp @@ -125,7 +125,7 @@ void MakePathRelative(HANDLE hContact, TCHAR *path) szFinalPath[0] = '\0'; size_t result = AVS_pathToRelative(path, szFinalPath); - if (result && lstrlen(szFinalPath) > 0) { + if (result && szFinalPath[0] != '\0') { db_set_ts(hContact, "ContactPhoto", "RFile", szFinalPath); if (!db_get_b(hContact, "ContactPhoto", "Locked", 0)) db_set_ts(hContact, "ContactPhoto", "Backup", szFinalPath); -- cgit v1.2.3