Skip to content

Commit 01d4431

Browse files
authored
Merge pull request #162 from robe2/fix-warnings-pg16
MINOR FIXES and add PG16 testing
2 parents 3449283 + ceaa168 commit 01d4431

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- { PGVER: 13 }
1919
- { PGVER: 14 }
2020
- { PGVER: 15 }
21+
- { PGVER: 16 }
2122

2223
steps:
2324

http.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,18 +1161,18 @@ Datum http_request(PG_FUNCTION_ARGS)
11611161
{
11621162
text *content_text;
11631163
long content_size;
1164-
char *content_type;
1164+
char *cstr;
11651165
char buffer[1024];
11661166

11671167
/* Read the content type */
11681168
if ( nulls[REQ_CONTENT_TYPE] || ! values[REQ_CONTENT_TYPE] )
11691169
elog(ERROR, "http_request.content_type is NULL");
1170-
content_type = TextDatumGetCString(values[REQ_CONTENT_TYPE]);
1170+
cstr = TextDatumGetCString(values[REQ_CONTENT_TYPE]);
11711171

11721172
/* Add content type to the headers */
1173-
snprintf(buffer, sizeof(buffer), "Content-Type: %s", content_type);
1173+
snprintf(buffer, sizeof(buffer), "Content-Type: %s", cstr);
11741174
headers = curl_slist_append(headers, buffer);
1175-
pfree(content_type);
1175+
pfree(cstr);
11761176

11771177
/* Read the content */
11781178
content_text = DatumGetTextP(values[REQ_CONTENT]);

0 commit comments

Comments
 (0)