Check for null pointer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,7 +127,7 @@ bool wxAppConsole::Initialize(int& argc, wxChar **argv)
|
|||||||
this->argc = argc;
|
this->argc = argc;
|
||||||
this->argv = argv;
|
this->argv = argv;
|
||||||
|
|
||||||
if ( m_appName.empty() )
|
if ( m_appName.empty() && argv )
|
||||||
{
|
{
|
||||||
// the application name is, by default, the name of its executable file
|
// the application name is, by default, the name of its executable file
|
||||||
#if wxUSE_FILENAME
|
#if wxUSE_FILENAME
|
||||||
|
Reference in New Issue
Block a user