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

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

Commit: f97aaaa06c3c79c54e9b3051f03f9bfe56b8a9c6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-30T05:37:38Z
Releases: 8.2.23
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