From: Pablo Galindo Date: Sat, 1 Jun 2019 20:02:08 +0000 (+0100) Subject: Fix compiler warnings in the pystrehex module (GH-13730) X-Git-Tag: v3.8.0b1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=938d9a0167f7fa4ed109484d269902021d274c64;p=python Fix compiler warnings in the pystrehex module (GH-13730) --- diff --git a/Python/pystrhex.c b/Python/pystrhex.c index 695a3c394e..5dc7c96137 100644 --- a/Python/pystrhex.c +++ b/Python/pystrhex.c @@ -11,11 +11,11 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen, PyObject *retval; Py_UCS1* retbuf; Py_ssize_t i, j, resultlen = 0; - Py_UCS1 sep_char; + Py_UCS1 sep_char = 0; unsigned int abs_bytes_per_sep; if (sep) { - Py_ssize_t seplen = PyObject_Length(sep); + Py_ssize_t seplen = PyObject_Length((PyObject*)sep); if (seplen < 0) { return NULL; }