aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth-oauth-curl.c
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2025-04-17 11:37:55 +1200
committerDavid Rowley <drowley@postgresql.org>2025-04-17 11:37:55 +1200
commit3fae25cbb35aa885c411fb51f55a64bb80dc5844 (patch)
tree5e4438e2c2bb37d559ef2cc47e16886615a3f17b /src/interfaces/libpq/fe-auth-oauth-curl.c
parentf3281f9f9395099724b55ddc52991a92795c6068 (diff)
downloadpostgresql-3fae25cbb35aa885c411fb51f55a64bb80dc5844.tar.gz
postgresql-3fae25cbb35aa885c411fb51f55a64bb80dc5844.zip
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 <drowleyml@gmail.com> Discussion: https://postgr.es/m/CAApHDvoARMvPeXTTC0HnpARBHn-WgVstc8XFCyMGOzvgu_1HvQ@mail.gmail.com
Diffstat (limited to 'src/interfaces/libpq/fe-auth-oauth-curl.c')
-rw-r--r--src/interfaces/libpq/fe-auth-oauth-curl.c2
1 files changed, 1 insertions, 1 deletions
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;
}