Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Modules/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,8 @@ config_get_program_name(_PyMainInterpreterConfig *config)
size_t len;
wchar_t* program_name = Py_DecodeLocale(p, &len);
if (program_name == NULL) {
return SET_DECODE_ERROR("PYTHONEXECUTABLE environment "
"variable", len);
SET_DECODE_ERROR("PYTHONEXECUTABLE environment variable", len);
return -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why -1? Does the return matter?

}
config->program_name = program_name;
}
Expand All @@ -916,8 +916,9 @@ config_get_program_name(_PyMainInterpreterConfig *config)
size_t len;
wchar_t* program_name = Py_DecodeLocale(pyvenv_launcher, &len);
if (program_name == NULL) {
return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment "
"variable", len);
SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment variable",
len);
return -1;
}
config->program_name = program_name;
}
Expand Down