From 3fae25cbb35aa885c411fb51f55a64bb80dc5844 Mon Sep 17 00:00:00 2001 From: David Rowley Date: Thu, 17 Apr 2025 11:37:55 +1200 Subject: Fixup various new-to-v18 usages of appendPQExpBuffer Use appendPQExpBufferStr when there are no parameters and appendPQExpBufferChar when the string length is 1. Author: David Rowley Discussion: https://postgr.es/m/CAApHDvoARMvPeXTTC0HnpARBHn-WgVstc8XFCyMGOzvgu_1HvQ@mail.gmail.com --- src/interfaces/libpq/fe-auth-oauth-curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/libpq/fe-auth-oauth-curl.c') diff --git a/src/interfaces/libpq/fe-auth-oauth-curl.c b/src/interfaces/libpq/fe-auth-oauth-curl.c index cd9c0323bb6..ddd87dcf02d 100644 --- a/src/interfaces/libpq/fe-auth-oauth-curl.c +++ b/src/interfaces/libpq/fe-auth-oauth-curl.c @@ -2859,7 +2859,7 @@ error_return: } } - appendPQExpBufferStr(&conn->errorMessage, "\n"); + appendPQExpBufferChar(&conn->errorMessage, '\n'); return PGRES_POLLING_FAILED; } -- cgit v1.2.3