From 77778c2b9236077c7e79f06aa798affa2f90a1db Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 6 Jun 2015 10:23:34 +0000 Subject: fix for some warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@14023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Db_autobackups/src/backup.cpp') diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index d18693c2f0..b63690ac72 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -174,7 +174,6 @@ int Comp(const void *i, const void *j) int RotateBackups(TCHAR *backupfolder, TCHAR *dbname) { - size_t i = 0; backupFile *bf = NULL, *bftmp; HANDLE hFind; TCHAR backupfolderTmp[MAX_PATH]; @@ -186,6 +185,8 @@ int RotateBackups(TCHAR *backupfolder, TCHAR *dbname) hFind = FindFirstFile(backupfolderTmp, &FindFileData); if (hFind == INVALID_HANDLE_VALUE) return 0; + + int i = 0; do { if (FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) continue; -- cgit v1.2.3