summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-10 10:18:18 (GMT)
committerGitHub <noreply@github.com>2024-06-10 10:18:18 (GMT)
commit14ff4c979c8564376707de4b5a84dd3e4fcb5d1d (patch)
tree62d1f88d0f9335d0583fe27a13cde8074f0e63b0 /Python/pylifecycle.c
parent03cd44759f8e5faaa154628e196860255d87bddd (diff)
downloadcpython-14ff4c979c8564376707de4b5a84dd3e4fcb5d1d.zip
cpython-14ff4c979c8564376707de4b5a84dd3e4fcb5d1d.tar.gz
cpython-14ff4c979c8564376707de4b5a84dd3e4fcb5d1d.tar.bz2
[3.13] gh-120155: Fix Coverity issue in zoneinfo load_data() (GH-120232) (#120310)
gh-120155: Fix Coverity issue in zoneinfo load_data() (GH-120232) Declare the 'rv' varaible at the top of the load_data() function to make sure that it's initialized before the first 'goto error' which uses 'rv' (return rv). Fix the Coverity issue: Error: UNINIT (CWE-457): Python-3.12.2/Modules/_zoneinfo.c:1233:5: skipped_decl: Jumping over declaration of ""rv"". Python-3.12.2/Modules/_zoneinfo.c:1284:5: uninit_use: Using uninitialized value ""rv"". 1282| } 1283| 1284|-> return rv; 1285| } 1286| (cherry picked from commit b90bd3e5bbc136f53b24ee791824acd6b17e0d42) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/pylifecycle.c')
0 files changed, 0 insertions, 0 deletions