mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
This commit is contained in:
parent
8b1271b12f
commit
6b95149ecc
1 changed files with 1 additions and 1 deletions
|
|
@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
|
||||||
char *p = PyBytes_AS_STRING(tag);
|
char *p = PyBytes_AS_STRING(tag);
|
||||||
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
|
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
|
||||||
if (len >= 3 && p[0] == '{' && (
|
if (len >= 3 && p[0] == '{' && (
|
||||||
p[1] == '}' || p[1] == '*' && p[2] == '}')) {
|
p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
|
||||||
/* wildcard: '{}tag' or '{*}tag' */
|
/* wildcard: '{}tag' or '{*}tag' */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue