Skip to content

bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv#12441

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:path0_empty_argv
Mar 19, 2019
Merged

bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv#12441
vstinner merged 2 commits intopython:masterfrom
vstinner:path0_empty_argv

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Mar 19, 2019

  • _PyPathConfig_ComputeSysPath0() now returns 0 if argv is empty.
  • Cleanup also _PyPathConfig_ComputeSysPath0() code: move variables
    definition closer to where they are used.

https://bugs.python.org/issue36236

* _PyPathConfig_ComputeSysPath0() now returns 0 if argv is empty.
* Cleanup also _PyPathConfig_ComputeSysPath0() code: move variables
  definition closer to where they are used.
@vstinner
Copy link
Copy Markdown
Member Author

cc @pablogsal

@vstinner vstinner merged commit fc96e54 into python:master Mar 19, 2019
@vstinner vstinner deleted the path0_empty_argv branch April 29, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants