summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-16 14:12:10 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-16 14:12:10 +0000
commitddac55403efc2fa4de7ad484a057bd96c24335c5 (patch)
treea5a55088e637a7830135d9fb314d1c95311d78f7
parent4f7596e84a4a0caf9801e41aabd9b01b48fcab6f (diff)
Db_autobackups: small clean
git-svn-id: http://svn.miranda-ng.org/main/trunk@11461 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Db_autobackups/src/backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index 14cc06d05e..22090ee0f6 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -199,7 +199,7 @@ int RotateBackups(TCHAR *backupfolder, TCHAR *dbname)
} while (FindNextFile(hFind, &FindFileData));
if (i > 0)
qsort(bf, i, sizeof(backupFile), Comp); /* Sort the list of found files by date in descending order. */
- for (i; i >= options.num_backups; i --) {
+ for (; i >= options.num_backups; i --) {
mir_sntprintf(backupfolderTmp, SIZEOF(backupfolderTmp), _T("%s\\%s"), backupfolder, bf[(i - 1)].Name);
DeleteFile(backupfolderTmp);
}