diff --git a/src/application.c b/src/application.c index 45dec3b..640b932 100644 --- a/src/application.c +++ b/src/application.c @@ -27,7 +27,8 @@ int mstdnt_app_result(struct mstdnt_fetch_results* results, cJSON* root, *v; /* Zero out */ - memset(storage, 0, sizeof(struct mstdnt_app)); + memset(storage, 0, sizeof(struct mstdnt_storage)); + memset(app, 0, sizeof(struct mstdnt_app)); if (_mstdnt_json_init(&root, results, storage)) return 1;