]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700)
authorAlex Henrie <alexhenrie24@gmail.com>
Fri, 12 May 2023 06:48:42 +0000 (00:48 -0600)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 06:48:42 +0000 (08:48 +0200)
Modules/_zoneinfo.c

index 3b2d282d65cab9dfd4659b268963b68c49b2b2ef..c8c791b6d7c0d88c9c9ea7ccc39653c49d7d6eab 100644 (file)
@@ -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) != '>') {