Fix a couple of warnings

This commit is contained in:
Neal Norwitz 2007-08-26 05:32:41 +00:00
parent 3c814d2550
commit 5616c6d690
2 changed files with 2 additions and 2 deletions

View file

@ -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;