Ticket #33692: patch-lib-ext2fs-inline.c.diff

File patch-lib-ext2fs-inline.c.diff, 401 bytes (added by mklein-de (Michael Klein), 13 years ago)
  • lib/ext2fs/inline.c

    old new  
    6060                        return EXT2_ET_NO_MEMORY;
    6161        }
    6262#else
    63 #error memalign or posix_memalign must be defined!
     63    *(void **) ptr = (align > 16) ? valloc(size) : malloc(size);
     64        if (*(void **)ptr == NULL) {
     65        return EXT2_ET_NO_MEMORY;
     66        }
    6467#endif
    6568#endif
    6669        return 0;