]> granicus.if.org Git - python/commit
bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv (GH-12441)
authorVictor Stinner <vstinner@redhat.com>
Tue, 19 Mar 2019 17:22:55 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 17:22:55 +0000 (18:22 +0100)
commitfc96e5474a7bda1c5dec66420e4467fc9f7ca968
treef7cc2bb845dd9b582b2dd47770c2ff7995c6ccfa
parentcb90c89de14aab636739b3e810cf949e47b54a0c
bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv (GH-12441)

* _PyPathConfig_ComputeSysPath0() now returns 0 if argv is empty.
* Cleanup also _PyPathConfig_ComputeSysPath0() code: move variables
  definitions closer to where they are used.
Python/pathconfig.c