summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-10 02:51:57 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-10 02:51:57 (GMT)
commit0407aeae01e38098a8dfa6fec4a04d254f8b6517 (patch)
treef88883db151e6e8bd4f6f84403c231e8aab9c675
parenta4c8cd7b2c07891a7b913435a0ce59ece502cfb9 (diff)
downloadcpython-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.
-rw-r--r--Python/getargs.c2
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;