Kaydet (Commit) 865d12a2 authored tarafından Christian Heimes's avatar Christian Heimes

Fix warning: ‘ptr2’ may be used uninitialized in this function

üst 1d7ec8f2
......@@ -2723,6 +2723,7 @@ test_setallocators(PyMemAllocatorDomain domain)
case PYMEM_DOMAIN_RAW: ptr2 = PyMem_RawRealloc(ptr, size2); break;
case PYMEM_DOMAIN_MEM: ptr2 = PyMem_Realloc(ptr, size2); break;
case PYMEM_DOMAIN_OBJ: ptr2 = PyObject_Realloc(ptr, size2); break;
default: ptr2 = NULL; break;
}
if (ptr2 == NULL) {
......
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