Skip to content

Commit

Permalink
Quiet warnings for some compilers, closes #157
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Jul 26, 2023
1 parent db558f0 commit f579fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ static bool
set_curlopt(CURL* handle, const http_curlopt *opt)
{
CURLcode err = CURLE_OK;
char http_error_buffer[CURL_ERROR_SIZE];
char http_error_buffer[CURL_ERROR_SIZE] = "\0";

memset(http_error_buffer, 0, sizeof(http_error_buffer));

Expand Down Expand Up @@ -1009,7 +1009,7 @@ Datum http_request(PG_FUNCTION_ARGS)

/* Processing */
CURLcode err;
char http_error_buffer[CURL_ERROR_SIZE];
char http_error_buffer[CURL_ERROR_SIZE] = "\0";

struct curl_slist *headers = NULL;
StringInfoData si_data;
Expand Down

0 comments on commit f579fcb

Please sign in to comment.