Re: [exim] Off-topic coding style (was: [BUG?] in src/auths/…

Top Page
Delete this message
Reply to this message
Author: John Hall
Date:  
To: exim-users
CC: Peter D. Gray, Chris Lightfoot
Subject: Re: [exim] Off-topic coding style (was: [BUG?] in src/auths/pwcheck.c)
On 10/10/06, Michael J. Tubby G8TIC <mike.tubby@???> wrote:

> with a local implementation (in library code) of zmalloc that looks like:
>
> void * zmalloc(size_t size)
> {
>    void * p = malloc(size);
>    if (p)
>        memset(p, 0, size);
>    return p;
> }


I'm in the habit of just using calloc(1, size), which zeroes memory.

regards,
John