diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-06 10:23:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-06 10:23:34 +0000 |
commit | 77778c2b9236077c7e79f06aa798affa2f90a1db (patch) | |
tree | 84522dfa63e6f5982614e61a0b1ff2467620d441 /plugins/Db_autobackups/src/backup.cpp | |
parent | 70cbc6e77f935b7116c1080033f5d7d5b604b5a7 (diff) |
fix for some warnings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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;
|