Re: BUG #7811: strlen(NULL) cause psql crash - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7811: strlen(NULL) cause psql crash
Date
Msg-id 683.1358277657@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #7811: strlen(NULL) cause psql crash  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-bugs
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> Hmm, I wonder if an empty string would be better? It'd look a bit odd,
> but at least it would not mislead you to think you're connected to a
> database called "none".

Works for me as a back-branch fix, especially since then we're adding
zero new strings to the back branches.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #7811: strlen(NULL) cause psql crash
Next
From: analyst.kleber@gmail.com
Date:
Subject: BUG #7813: Problem in installation