Small changes

Dependencies:   FATFileSystem

Dependents:   main_src

Fork of EALib by EmbeddedArtists AB

Files at this revision

API Documentation at this revision

Comitter:
klauss
Date:
Tue Jan 06 16:36:38 2015 +0000
Parent:
18:9f1f1a8b4729
Commit message:
rx buffer resized

Changed in this revision

QSPIFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/QSPIFileSystem.cpp	Mon Oct 27 10:18:08 2014 +0000
+++ b/QSPIFileSystem.cpp	Tue Jan 06 16:36:38 2015 +0000
@@ -1196,6 +1196,12 @@
 QSPIDirHandle* QSPIDirHandle::openDir(const char* dirname)
 {
   QSPIDirHandle* d = new QSPIDirHandle(dirname);
+  
+  if( d == NULL ) {
+    // failed to allocate memory
+    return d;
+  }
+  
   if (d->dirname == NULL) {
     // failed to allocate memory for the folder name
     delete d;