Browse Source

Clear dir_t size, not pointer size

Scott Lahteine 8 years ago
parent
commit
7ad33422e3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp View File

@@ -674,7 +674,7 @@ bool SdBaseFile::open(SdBaseFile* dirFile,
674 674
       index = 0;
675 675
     }
676 676
     // initialize as empty file
677
-    ZERO(p);
677
+    memset(p, 0, sizeof(*p));
678 678
     memcpy(p->name, dname, 11);
679 679
 
680 680
     // set timestamps

Loading…
Cancel
Save