Fix warning: comparison of unsigned expression < 0 is always false

This commit is contained in:
Ai Lin Chia
2016-08-24 11:19:05 +02:00
parent 5742a40228
commit dd947492c7

@ -945,13 +945,6 @@ retry:
return NULL;
}
if ( size < 0 ) {
g_errno = EBADENGINEER;
log( LOG_ERROR, "mem: malloc(%zu): Bad value.", size );
gbshutdownLogicError();
return NULL;
}
void *mem;
mem = (void *)sysmalloc ( size + UNDERPAD + OVERPAD );