Re: Win32: Minimising desktop heap usage

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Win32: Minimising desktop heap usage
Дата
Msg-id 471E3434.60306@hagander.net
обсуждение исходный текст
Ответ на Re: Win32: Minimising desktop heap usage  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: uuid.h on Debian
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Win32: Minimising desktop heap usage