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

This commit is contained in:
Christian Heimes 2013-08-02 11:10:51 +02:00
parent 1d7ec8f26c
commit 865d12a2d9
1 changed files with 1 additions and 0 deletions

View File

@ -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) {