X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84abef1a34f3986de2a40747493fd7da66778368..a9a56347b84be54a9d48df2cfe08ddf761aaf491:/samples/widgets/datepick.cpp diff --git a/samples/widgets/datepick.cpp b/samples/widgets/datepick.cpp index 86b809a441..e553c3581f 100644 --- a/samples/widgets/datepick.cpp +++ b/samples/widgets/datepick.cpp @@ -223,7 +223,9 @@ void DatePickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event)) void DatePickerWidgetsPage::OnButtonSet(wxCommandEvent& WXUNUSED(event)) { - long day, month, year; + long day = 0, + month = 0, + year = 0; if ( m_day->GetValue().ToLong(&day) && m_month->GetValue().ToLong(&month) && m_year->GetValue().ToLong(&year) )