Fix invalid overwrite size
FossilOrigin-Name: b25ab974d331718e5585047e4f711d953deecedfa7cddb21110efcf687cd47e4
This commit is contained in:
parent
4227067dca
commit
ddce45ad0e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue