rpm/misc/myrealloc.c

9 lines
152 B
C

#include "system.h"
void *myrealloc(void *ptr, size_t size) {
if (ptr == NULL)
return malloc(size);
else
return realloc(ptr, size);
}