Browse Source

Fix initialization warning with jansson 1.3

nfactor-troky
Luke Dashjr 13 years ago committed by Con Kolivas
parent
commit
9631c0b02a
  1. 4
      util.c

4
util.c

@ -256,7 +256,7 @@ json_t *json_rpc_call(CURL *curl, const char *url, @@ -256,7 +256,7 @@ json_t *json_rpc_call(CURL *curl, const char *url,
int rc;
struct data_buffer all_data = {NULL, 0};
struct upload_buffer upload_data;
json_error_t err = {0, 0, 0, "", ""};
json_error_t err;
struct curl_slist *headers = NULL;
char len_hdr[64], user_agent_hdr[128];
char curl_err_str[CURL_ERROR_SIZE];
@ -264,6 +264,8 @@ json_t *json_rpc_call(CURL *curl, const char *url, @@ -264,6 +264,8 @@ json_t *json_rpc_call(CURL *curl, const char *url,
struct header_info hi = {NULL, false, NULL};
bool probing = false;
memset(&err, 0, sizeof(err));
/* it is assumed that 'curl' is freshly [re]initialized at this pt */
if (probe)

Loading…
Cancel
Save