Re: Win32: Minimising desktop heap usage - Mailing list pgsql-patches

From Magnus Hagander
Subject Re: Win32: Minimising desktop heap usage
Date
Msg-id 471E3434.60306@hagander.net
Whole thread Raw
In response to Re: Win32: Minimising desktop heap usage  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Dave Page <dpage@postgresql.org> writes:
>> Tom Lane wrote:
>>> So don't initialize a local variable unless
>>> you're giving it an actually meaningful value.
>
>> The downside is that we see a useless warning that, if sufficiently
>> multiplied, might make it hard to see something we are interested in.
>
> [ looks again... ]  Actually, I think you just proved my point for me.
> The ZeroMemory call should go away, no?  (Does this mean that the
> Windows builds fail to detect dereferencing NULL?  Bad if so.)

Windows builds don't fail to detect that in genereal. ZeroMemory,
however, has a protection specifically against being passed NULL input,
IIRC.

//Magnus


pgsql-patches by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: uuid.h on Debian
Next
From: Magnus Hagander
Date:
Subject: Re: Win32: Minimising desktop heap usage