From 7c57a5cc13c3c009916a59189d7784474aee29c0 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 17 Aug 2021 20:01:06 -0700 Subject: [PATCH] Updater: Fix MSVC build --- src/feature/updater-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/feature/updater-main.c b/src/feature/updater-main.c index 6273ec192..0e547cd27 100644 --- a/src/feature/updater-main.c +++ b/src/feature/updater-main.c @@ -23,7 +23,7 @@ #endif bool extractArchive(struct VDir* archive, const char* root) { - char path[PATH_MAX] = {}; + char path[PATH_MAX] = {0}; struct VDirEntry* vde; uint8_t block[8192]; ssize_t size; @@ -75,7 +75,7 @@ int main(int argc, char* argv[]) { UNUSED(argc); UNUSED(argv); struct mCoreConfig config; - char updateArchive[PATH_MAX] = {}; + char updateArchive[PATH_MAX] = {0}; const char* root; int ok = 1; @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) { unlink(updateArchive); } if (!isPortable) { - char portableIni[PATH_MAX] = {}; + char portableIni[PATH_MAX] = {0}; snprintf(portableIni, sizeof(portableIni), "%s/portable.ini", root); unlink(portableIni); }