diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-10 09:54:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 09:54:35 (GMT) |
commit | b90bd3e5bbc136f53b24ee791824acd6b17e0d42 (patch) | |
tree | ff226fec5d81d7694ca84558233a92e674cad3a3 /Python/Python-tokenize.c | |
parent | 4829522b8d3e1a28930f1cccfcc9635e035a0eb4 (diff) | |
download | cpython-b90bd3e5bbc136f53b24ee791824acd6b17e0d42.zip cpython-b90bd3e5bbc136f53b24ee791824acd6b17e0d42.tar.gz cpython-b90bd3e5bbc136f53b24ee791824acd6b17e0d42.tar.bz2 |
gh-120155: Fix Coverity issue in zoneinfo load_data() (#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|
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions