From: Alex Henrie Date: Fri, 12 May 2023 06:48:42 +0000 (-0600) Subject: gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700) X-Git-Tag: v3.12.0b1~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c2992e58b033a6c8adcb52b53c42a96002e7034;p=thirdparty%2FPython%2Fcpython.git gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700) --- diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index 3b2d282d65ca..c8c791b6d7c0 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) != '>') {