diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-10 02:51:57 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-10 02:51:57 (GMT) |
commit | 0407aeae01e38098a8dfa6fec4a04d254f8b6517 (patch) | |
tree | f88883db151e6e8bd4f6f84403c231e8aab9c675 /Python/getargs.c | |
parent | a4c8cd7b2c07891a7b913435a0ce59ece502cfb9 (diff) | |
download | cpython-0407aeae01e38098a8dfa6fec4a04d254f8b6517.zip cpython-0407aeae01e38098a8dfa6fec4a04d254f8b6517.tar.gz cpython-0407aeae01e38098a8dfa6fec4a04d254f8b6517.tar.bz2 |
One more place where PyString_AsString() was used after a
PyString_Check() had already succeeded.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index ad80b3f..089aaea 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -553,7 +553,7 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf) case 'c': {/* char */ char *p = va_arg(*p_va, char *); if (PyString_Check(arg) && PyString_Size(arg) == 1) - *p = PyString_AsString(arg)[0]; + *p = PyString_AS_STRING(arg)[0]; else return converterr("char", arg, msgbuf); break; |