summaryrefslogtreecommitdiffstats
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index d31da07..e742172 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -35,7 +35,8 @@ Py_FrozenMain(int argc, char **argv)
#ifdef MS_WINDOWS
PyInitFrozenExtensions();
#endif /* MS_WINDOWS */
- Py_SetProgramName(argv[0]);
+ if (argc >= 1)
+ Py_SetProgramName(argv[0]);
Py_Initialize();
#ifdef MS_WINDOWS
PyWinFreeze_ExeInit();