Browse Source
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
pull/13118/head
Stefan Behnel
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Modules/_elementtree.c
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|