summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-09-14 18:29:55 (GMT)
committerGitHub <noreply@github.com>2024-09-14 18:29:55 (GMT)
commit401fff7423ca3c8bf1d02e594edfd1412616a559 (patch)
treeb2f460a0735c2b01284027c1decc567916bc856c /Python/errors.c
parent9dacf430c2f4af2acd870291a649b7b957efcd2c (diff)
downloadcpython-401fff7423ca3c8bf1d02e594edfd1412616a559.zip
cpython-401fff7423ca3c8bf1d02e594edfd1412616a559.tar.gz
cpython-401fff7423ca3c8bf1d02e594edfd1412616a559.tar.bz2
gh-121459: Add missing return to _PyDict_LoadGlobalStackRef (#124085)
We need to return immediately if there's an error during dictionary lookup. Also avoid the conditional-if operator. MSVC versions through v19.27 miscompile compound literals with side effects within a conditional operator. This caused crashes in the Windows10 buildbot.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions