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
       index = 0;
674
       index = 0;
675
     }
675
     }
676
     // initialize as empty file
676
     // initialize as empty file
677
-    ZERO(p);
677
+    memset(p, 0, sizeof(*p));
678
     memcpy(p->name, dname, 11);
678
     memcpy(p->name, dname, 11);
679
 
679
 
680
     // set timestamps
680
     // set timestamps

Loading…
Cancel
Save