Re: [HACKERS] CVS tip problems - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] CVS tip problems
Date
Msg-id 200406080146.i581kUq08212@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] CVS tip problems  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I assume all the callers have to check for NULL,
>
> Eh?  *None* of the callers of pqStrerror check for NULL, and I don't
> think they should have to.  We surely do not check for null return from
> plain strerror() anyplace.

Oh, I see.  It should be like strerror().  Makes sense. I replaced NULL
with "Unknown error" which is what strerror does for an unknown error
number.

--
  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, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] CVS tip problems
Next
From: Peter Eisentraut
Date:
Subject: Re: Relocatable locale