OSDN Git Service

Pass a strdup'd ident string to openlog(), to ensure that reallocation
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Oct 2005 16:41:02 +0000 (16:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Oct 2005 16:41:02 +0000 (16:41 +0000)
commit4aa0d70fb7a9b6490ebeb9e2979b6a1930b25984
tree0827d6431513251d3e1602c5c94d378ab1390b01
parenta93bf4503ffc6d7cd6243a6324fb2ef206b10adf
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.
src/backend/utils/error/elog.c