mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)
This commit is contained in:
parent
2f8bff6879
commit
067f0da335
4 changed files with 37 additions and 8 deletions
|
@ -2641,9 +2641,7 @@ skipitem(const char **p_format, va_list *p_va, int flags)
|
|||
if (*format == '#') {
|
||||
if (p_va != NULL) {
|
||||
if (!(flags & FLAG_SIZE_T)) {
|
||||
PyErr_SetString(PyExc_SystemError,
|
||||
"PY_SSIZE_T_CLEAN macro must be defined for '#' formats");
|
||||
return NULL;
|
||||
return "PY_SSIZE_T_CLEAN macro must be defined for '#' formats";
|
||||
}
|
||||
(void) va_arg(*p_va, Py_ssize_t *);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue