bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)

This commit is contained in:
Stefan Behnel 2019-05-06 17:36:35 +02:00 committed by GitHub
parent 8b1271b12f
commit 6b95149ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}