diff --git a/src/common/db.cpp b/src/common/db.cpp index 30f8556094..24761e1708 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -783,7 +783,8 @@ void wxDB::Close(void) #endif // Copy the error messages to a global variable - for (int i = 0; i < DB_MAX_ERROR_HISTORY; i++) + int i; + for (i = 0; i < DB_MAX_ERROR_HISTORY; i++) strcpy(DBerrorList[i],errorList[i]); } // wxDB::Close()