Debugging shit stay tuned
FossilOrigin-Name: f8b582223e43ec59c7a826275d83a48b47dc295362489961e7d3981899f1f26f
This commit is contained in:
parent
0a9f246f18
commit
4227067dca
2 changed files with 4 additions and 2 deletions
|
@ -50,6 +50,8 @@ int mstdnt_account_from_result(struct mstdnt_fetch_results* results,
|
|||
cJSON* root;
|
||||
root = cJSON_ParseWithLength(results->response, results->size);
|
||||
|
||||
memset(acct, 0, sizeof(struct mstdnt_account));
|
||||
|
||||
if (root == NULL)
|
||||
{
|
||||
return 1;
|
||||
|
@ -79,7 +81,7 @@ int mastodont_get_account(mastodont_t* data,
|
|||
{
|
||||
struct mstdnt_account_args acct_args = { acct, size };
|
||||
/* Url */
|
||||
char url[MSTDNT_URLSIZE];
|
||||
char url[MSTDNT_URLSIZE] = { 0 };
|
||||
snprintf(url, MSTDNT_URLSIZE,
|
||||
lookup ? "api/v1/accounts/%s" : "api/v1/accounts/lookup?acct=%s",
|
||||
id);
|
||||
|
|
|
@ -54,7 +54,7 @@ int mastodont_fetch_curl(mastodont_t* mstdnt,
|
|||
struct curl_slist* list = NULL;
|
||||
|
||||
/* Setup URL */
|
||||
char url[MSTDNT_URLSIZE];
|
||||
char url[MSTDNT_URLSIZE] = { 0 };
|
||||
strncpy(url, mstdnt->url, MSTDNT_URLSIZE-1);
|
||||
strncat(url, _url, MSTDNT_URLSIZE-1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue