From 8510a9b290bc92993d2ae57a965b7f36325e1aa9 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 25 Jun 2019 15:24:37 +0200 Subject: idevicecrashreport: zero-fill full struct stat structure instead of just the size --- tools/idevicecrashreport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/idevicecrashreport.c') diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index 6918d6b..d0b2c7a 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c @@ -135,7 +135,7 @@ static int afc_client_copy_and_remove_crash_reports(afc_client_t afc, const char char **fileinfo = NULL; struct stat stbuf; - stbuf.st_size = 0; + memset(&stbuf, '\0', sizeof(struct stat)); /* assemble absolute source filename */ strcpy(((char*)source_filename) + device_directory_length, list[k]); -- cgit v1.1-32-gdbae