]> 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:55 +0000 (16:50 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 23:50:55 +0000 (01:50 +0200)
commit85b587a38dcf5d0ef1e275510001e22425d65977
treeb91004eeb95b9db6ae9e17de6f24da556817f367
parent9a688624973a2b753b84f892b65268543c7ff67d
bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486) (GH-26496)

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