mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Fix initialization warning with jansson 1.3
This commit is contained in:
parent
c904b74b8c
commit
9631c0b02a
4
util.c
4
util.c
@ -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,
|
||||
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…
Reference in New Issue
Block a user