From 947f86ef235220dc29a41558827eaa23b247b1e6 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Fri, 11 Feb 2022 03:10:53 +0000 Subject: [PATCH] Return value initialize FossilOrigin-Name: 2370a2c5da12fb21e7a3987df75ae55099a45e5e66cadd9a622c7d30a5ac6c3b --- src/account.c | 2 +- src/timeline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/account.c b/src/account.c index b41a0a1..0c7bfd6 100644 --- a/src/account.c +++ b/src/account.c @@ -25,7 +25,7 @@ int mastodont_account(mastodont_t* data, struct mstdnt_storage* storage, size_t* size) { - int res; + int res = 0; cJSON* root; char url[MSTDNT_URLSIZE]; struct mstdnt_fetch_results results = { 0 }; diff --git a/src/timeline.c b/src/timeline.c index 9e7df18..7c0a9e6 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -24,7 +24,7 @@ int mastodont_timeline_public(mastodont_t* data, struct mstdnt_status* statuses[], size_t* size) { - int res; + int res = 0; cJSON* root, *status_j_list; size_t i = 0; struct mstdnt_fetch_results results = { 0 };