mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
This commit is contained in:
@@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
|
||||
char *p = PyBytes_AS_STRING(tag);
|
||||
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
|
||||
if (len >= 3 && p[0] == '{' && (
|
||||
p[1] == '}' || p[1] == '*' && p[2] == '}')) {
|
||||
p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
|
||||
/* wildcard: '{}tag' or '{*}tag' */
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user