X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1aa5517acff9ce039adcd6502db2e88cdd886c7..e8f5bc9b5c809d98fb9badb7c4783f59f08a038c:/src/generic/vscroll.cpp diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index 59a65f856e..a7d388a9bf 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -307,7 +307,7 @@ bool wxVScrolledWindow::Layout() // adjust the sizer dimensions/position taking into account the // virtual size and scrolled position of the window. - int w, h; + int w = 0, h = 0; GetVirtualSize(&w, &h); // x is always 0 so no variable needed