]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Jun 2021 23:50:38 +0000 (16:50 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 23:50:38 +0000 (16:50 -0700)
commit0e9af8cae314e4b0e770fe48d5f7b5f540c0b257
treee50333b0588c8d8573518713fe6d873d3d3ea2ae
parente5e93e6145090a636e67766a53b758d7ac78e3ad
bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486)

This was flagged by a static analyzer, but the logic of why this is NULL on error is hard to follow for humans as well.
(cherry picked from commit bdb56902a3bfe12b10f85a941d5dd0eae739f1a8)

Co-authored-by: stratakis <cstratak@redhat.com>
Modules/getpath.c