From 3d181b32d8846ebcada66fbc421125dd8f1c454c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 6 Jan 2021 21:35:13 -0800 Subject: rescue: zero initialize structs Various functions rely on this stuff at least being zeroed, rmd.c already had been fixed but rmd_rescue.c has been neglected. --- src/rmd_rescue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rmd_rescue.c b/src/rmd_rescue.c index dc5ca33..73ae7d4 100644 --- a/src/rmd_rescue.c +++ b/src/rmd_rescue.c @@ -43,9 +43,9 @@ int rmdRescue(const char *path) { unsigned short width, height; - ProgData pdata; - EncData enc_data; - CacheData cache_data; + ProgData pdata = {}; + EncData enc_data = {}; + CacheData cache_data = {}; rmdSetupDefaultArgs(&pdata.args); -- cgit v1.2.3