Page 1 of 1

Posted: 2006-07-28T18:29:41-07:00
by magick
The configure script adds
  • #define realloc rpl_realloc
to magick/magick-config.h if realloc() does not return 0 for realloc(0,0). To fix this problem, remove this define or add this method to the source distribution:

Code: Select all

void *rpl_realloc (void *p, size_t n)
{
    p = realloc(p, n);
    if (p == 0 && n == 0)
   return malloc(0);
    return p;
}