summaryrefslogtreecommitdiff
path: root/contrib/xml2/xpath.c
diff options
context:
space:
mode:
authorTom Lane2009-09-02 02:41:07 +0000
committerTom Lane2009-09-02 02:41:07 +0000
commitbcdb5788953a40c216c8870c59d8299f6d796170 (patch)
tree9901a4ee46b4b73f7895402fc121b2450002476a /contrib/xml2/xpath.c
parentd40ef0dc0ba6fc66261aa73f08484369e5165e85 (diff)
Fix pg_ctl's readfile() to not go into infinite loop on an empty file
(could happen if either postgresql.conf or postmaster.opts is empty). It's been broken since the C version was written for 8.0, so patch all the way back. initdb's copy of the function is broken in the same way, but it's less important there since the input files should never be empty. Patch that in HEAD only, and also fix some cosmetic differences that crept into that copy of the function. Per report from Corry Haines and Jeff Davis.
Diffstat (limited to 'contrib/xml2/xpath.c')
0 files changed, 0 insertions, 0 deletions