1
Description: Fix segfault in wxCmdLineParser::GetUsageString()
3
Author: Olly Betts <olly@survex.com>
4
Forwarded: http://trac.wxwidgets.org/ticket/13731
5
Last-Update: 2011-11-11
7
diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp
8
index c7b135d..0a32c55 100644
9
--- a/src/common/cmdline.cpp
10
+++ b/src/common/cmdline.cpp
11
@@ -951,7 +951,7 @@ void wxCmdLineParser::Usage()
12
wxString wxCmdLineParser::GetUsageString()
16
+ if ( wxTheApp && wxTheApp->argc > 0 )
18
appname = wxFileName(wxTheApp->argv[0]).GetFullName();