Re: BUG #7811: strlen(NULL) cause psql crash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: 1584171677(at)qq(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7811: strlen(NULL) cause psql crash
Date: 2013-01-15 19:20:57
Message-ID: 683.1358277657@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Heikki Linnakangas <hlinnakangas(at)vmware(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message analyst.kleber 2013-01-15 19:50:08 BUG #7813: Problem in installation
Previous Message Heikki Linnakangas 2013-01-15 19:15:53 Re: BUG #7811: strlen(NULL) cause psql crash