Re: SetVariable

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: SetVariable
Дата
Msg-id 200308301358.h7UDwu427952@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: SetVariable  ("Gaetano Mendola" <mendola@bigfoot.com>)
Ответы Re: SetVariable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Gaetano Mendola wrote:
> "Bruce Momjian" <pgman@candle.pha.pa.us> wrote:
> > I see other strdup() calls that don't check on a return.  Should we deal
> > with those too?
> 
> Well strdup obtain the memory for the new string using a malloc
> and normally is a good habit check the return value of a malloc.

Right.  My point is that we have lots of other strdup's in the code. 
Should we fix those too?  Seems we should be consistent.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Gaetano Mendola"
Дата:
Сообщение: Re: SetVariable
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Linux2.6 overcommit behaviour