diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-26 05:32:41 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-26 05:32:41 (GMT) |
commit | 5616c6d6904e7863a0400a549fac7d1a50635ed0 (patch) | |
tree | 27fe7409fd2ddd033c57360561bccada2c8629ce /Modules/cjkcodecs | |
parent | 3c814d2550b607672365b645b3283685858f7a82 (diff) | |
download | cpython-5616c6d6904e7863a0400a549fac7d1a50635ed0.zip cpython-5616c6d6904e7863a0400a549fac7d1a50635ed0.tar.gz cpython-5616c6d6904e7863a0400a549fac7d1a50635ed0.tar.bz2 |
Fix a couple of warnings
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/cjkcodecs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 9449c1f..3ec24cb 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -266,7 +266,7 @@ getcodec(PyObject *self, PyObject *encoding) "encoding name must be a string."); return NULL; } - enc = PyUnicode_AsString(encoding, NULL); + enc = PyUnicode_AsString(encoding); if (enc == NULL) return NULL; |