summaryrefslogtreecommitdiffstats
path: root/Modules/_zoneinfo.c
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2023-05-12 06:48:42 (GMT)
committerGitHub <noreply@github.com>2023-05-12 06:48:42 (GMT)
commit3c2992e58b033a6c8adcb52b53c42a96002e7034 (patch)
treebf937788ffb2eb5da443865eab6beb75b696cd73 /Modules/_zoneinfo.c
parentf0f5bb32043e1223d8c413e763cd93061d4f9fac (diff)
downloadcpython-3c2992e58b033a6c8adcb52b53c42a96002e7034.zip
cpython-3c2992e58b033a6c8adcb52b53c42a96002e7034.tar.gz
cpython-3c2992e58b033a6c8adcb52b53c42a96002e7034.tar.bz2
gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700)
Diffstat (limited to 'Modules/_zoneinfo.c')
-rw-r--r--Modules/_zoneinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c
index 3b2d282..c8c791b 100644
--- a/Modules/_zoneinfo.c
+++ b/Modules/_zoneinfo.c
@@ -1709,11 +1709,11 @@ static Py_ssize_t
parse_abbr(const char *const p, PyObject **abbr)
{
const char *ptr = p;
- char buff = *ptr;
const char *str_start;
const char *str_end;
if (*ptr == '<') {
+ char buff;
ptr++;
str_start = ptr;
while ((buff = *ptr) != '>') {