]> 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)
authorstratakis <cstratak@redhat.com>
Wed, 2 Jun 2021 14:54:33 +0000 (16:54 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 14:54:33 +0000 (16:54 +0200)
commitbdb56902a3bfe12b10f85a941d5dd0eae739f1a8
tree0a3947fb8449f1b949b38d328cf7362fcdba79c6
parentfbf25b8c0dd1e62db59117d53bbd2d4131a06867
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.
Modules/getpath.c