Kaydet (Commit) f789465e authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Silence a gcc "may be used uninitialized" compiler warning. Not true.

Initializing retval prevents the naive warning.
üst 9afe8a33
......@@ -18,6 +18,7 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
retbuf = (Py_UCS1*) PyMem_Malloc(arglen*2);
if (!retbuf)
return PyErr_NoMemory();
retval = NULL; /* silence a compiler warning, assigned later. */
} else {
retval = PyUnicode_New(arglen*2, 127);
if (!retval)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment