Pass a strdup'd ident string to openlog(), to ensure that reallocation

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

Commit: 0fa322a14eb09c8ca6c0fbbbc32d359ae9bc5197
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-10-14T16:41:41Z
Releases: 7.3.12
Pass a strdup'd ident string to openlog(), to ensure that reallocation
of GUC memory doesn't cause us to start emitting a bogus ident string.
Per report from Han Holl.  Also some trivial code cleanup in write_syslog.

Files

PathChange+/−
src/backend/utils/error/elog.c modified +8 −3