]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed a variable declaration from within a FOR statement for compilation on HP-UX
authorGeorge Tasker <gtasker@allenbrook.com>
Fri, 15 Oct 1999 10:11:06 +0000 (10:11 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Fri, 15 Oct 1999 10:11:06 +0000 (10:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/db.cpp

index 30f8556094231bd85b3da8c0f8d09576fe2cb34b..24761e1708d51cf7510344ce664db07a3088fb38 100644 (file)
@@ -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()