Tweak previous patch to ensure edata->filename always gets initialized.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ed30dff211c988622d1ff43f5de2b5821a961980
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-30T05:37:33Z
Releases: 8.3.17
Tweak previous patch to ensure edata->filename always gets initialized.

On a platform that isn't supplying __FILE__, previous coding would either
crash or give a stale result for the filename string.  Not sure how likely
that is, but the original code catered for it, so let's keep doing so.

Files

PathChange+/−
src/backend/utils/error/elog.c modified +6 −2