Permalink
Browse files

Fix portability issue when compiling for pg7.3 with older gcc versions.

  • Loading branch information...
1 parent 29105b7 commit 1eaf6bcfca481818cecd992995da74772c5f831b postgres committed Aug 25, 2003
Showing with 2 additions and 3 deletions.
  1. +2 −3 pg_backend_support.c
View
@@ -1438,15 +1438,14 @@ send_message_to_server_log(ErrorData *edata)
static void
send_message_to_frontend(ErrorData *edata)
{
+ /* Old style --- gin up a backwards-compatible message */
+ StringInfoData buf;
StringInfoData msgbuf;
/* 'N' (Notice) is for nonfatal conditions, 'E' is for errors */
pq_beginmessage(&msgbuf);
pq_sendbyte(&msgbuf, edata->elevel != ERROR ? 'N' : 'E');
- /* Old style --- gin up a backwards-compatible message */
- StringInfoData buf;
-
initStringInfo(&buf);
appendStringInfo(&buf, "%s: ", error_severity(edata->elevel));

0 comments on commit 1eaf6bc

Please sign in to comment.