summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index ce22e20bf1..83fb342dec 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -451,10 +451,7 @@ HANDLE CIcqProto::SendFile(MCONTACT hContact, const wchar_t *szDescription, wcha
{
IcqFileTransfer *pTransfer = nullptr;
- for (int i = 0; ; i++) {
- if (ppszFiles[i] == nullptr)
- break;
-
+ for (int i = 0; ppszFiles[i] != 0; i++) {
struct _stat statbuf;
if (_wstat(ppszFiles[0], &statbuf)) {
debugLogW(L"'%s' is an invalid filename", ppszFiles[i]);