summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-06-25 15:24:37 +0200
committerGravatar Nikias Bassen2019-06-25 15:24:37 +0200
commit8510a9b290bc92993d2ae57a965b7f36325e1aa9 (patch)
treeba0f517dfcb78e390c282e73cf9f7105cd331b0f
parent78d116c8b93e460afd28436d38275c03d7dd1f32 (diff)
downloadlibimobiledevice-8510a9b290bc92993d2ae57a965b7f36325e1aa9.tar.gz
libimobiledevice-8510a9b290bc92993d2ae57a965b7f36325e1aa9.tar.bz2
idevicecrashreport: zero-fill full struct stat structure instead of just the size
-rw-r--r--tools/idevicecrashreport.c2
1 files changed, 1 insertions, 1 deletions
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]);