From c944dd795207f196ce64be39904506a58c9eac70 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Jun 2023 22:12:22 +0300 Subject: code cleaning --- protocols/ICQ-WIM/src/proto.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'protocols') 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]); -- cgit v1.2.3