From 7ad33422e3efc47ff418a54a406ed9badcc91a5f Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Tue, 25 Oct 2016 22:59:40 -0500
Subject: [PATCH] Clear dir_t size, not pointer size

---
 Marlin/SdBaseFile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/SdBaseFile.cpp b/Marlin/SdBaseFile.cpp
index 412292b9af..298cdd1147 100644
--- a/Marlin/SdBaseFile.cpp
+++ b/Marlin/SdBaseFile.cpp
@@ -674,7 +674,7 @@ bool SdBaseFile::open(SdBaseFile* dirFile,
       index = 0;
     }
     // initialize as empty file
-    ZERO(p);
+    memset(p, 0, sizeof(*p));
     memcpy(p->name, dname, 11);
 
     // set timestamps
-- 
GitLab