From 0cb9ba2518e309fadf30ae39daba683ccd80e417 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Jun 2009 12:19:59 +0000 Subject: [PATCH] correct bug with using uninitialized end variable (unused variable warnings are not always useless) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index c0a7e4131c..dec8be85fc 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -870,7 +870,7 @@ int wxCmdLineParser::Parse(bool showUsage) { wxDateTime dt; wxString::const_iterator end; - if ( !dt.ParseDate(value) || end != value.end() ) + if ( !dt.ParseDate(value, &end) || end != value.end() ) { errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."), name.c_str(), value.c_str()) -- 2.45.2