summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-01-06 21:35:13 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-01-06 21:35:13 -0800
commit3d181b32d8846ebcada66fbc421125dd8f1c454c (patch)
tree346593d1417a6f4dec9cd380b35df2ce14cca3ec /src
parentedda2929c0ca023699629e5d22d8cc553e2e2821 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rmd_rescue.c6
1 files changed, 3 insertions, 3 deletions
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);
© All Rights Reserved