diff options
Diffstat (limited to 'tools')
-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]); |