apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@samba-tng.org>
Subject [PATCH] Sms framework calloc optimization, realloc 'fix'
Date Tue, 12 Jun 2001 00:20:12 GMT
Hi,

This patch sets sms->calloc_fn to a default one
that does the following:

    mem = sms->malloc_fn(sms, size);
    if (mem)
        memset(mem, '\0', size);
    return mem;


Second it adds a check to see if the sms->realloc_fn
is valid prior to calling it.

Sander

Mime
View raw message