Unverified Kaydet (Commit) 6b95149e authored tarafından Stefan Behnel's avatar Stefan Behnel Kaydeden (comit) GitHub

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

üst 8b1271b1
...@@ -1171,7 +1171,7 @@ checkpath(PyObject* tag) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment