diff options
author | Nikias Bassen | 2019-06-25 15:24:37 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-06-25 15:24:37 +0200 |
commit | 8510a9b290bc92993d2ae57a965b7f36325e1aa9 (patch) | |
tree | ba0f517dfcb78e390c282e73cf9f7105cd331b0f | |
parent | 78d116c8b93e460afd28436d38275c03d7dd1f32 (diff) | |
download | libimobiledevice-8510a9b290bc92993d2ae57a965b7f36325e1aa9.tar.gz libimobiledevice-8510a9b290bc92993d2ae57a965b7f36325e1aa9.tar.bz2 |
idevicecrashreport: zero-fill full struct stat structure instead of just the size
-rw-r--r-- | tools/idevicecrashreport.c | 2 |
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]); |