From 712724e0ffaabceecd80ee6dae75a9b1dbd9c1da Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Feb 2017 02:12:39 +0100 Subject: [PATCH] (archive_file.c) Get rid of memsets --- libretro-common/file/archive_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/archive_file.c b/libretro-common/file/archive_file.c index bdc1c40b89..6081c7a435 100644 --- a/libretro-common/file/archive_file.c +++ b/libretro-common/file/archive_file.c @@ -188,7 +188,7 @@ static int file_archive_get_file_list_cb( (void)size; (void)checksum; - memset(&attr, 0, sizeof(attr)); + attr.i = 0; if (!path_len) return 0; @@ -703,7 +703,7 @@ static struct string_list *file_archive_filename_split(const char *path) struct string_list *list = string_list_new(); const char *delim = path_get_archive_delim(path); - memset(&attr, 0, sizeof(attr)); + attr.i = 0; if (delim) {