yaffs: Refactor drivers WIP - stress tests passing
[yaffs2.git] / direct / yaffsfs.c
index 2917a5d817b53d75a6772c0ba04311a495fe4ff2..def672dbafc783a9fbc2c0c034ad8ec4635821c5 100644 (file)
@@ -501,6 +501,9 @@ static struct yaffs_dev *yaffsfs_FindDevice(const YCHAR *path,
                thisMatchLength = 0;
                matching = 1;
 
+               if(!p)
+                       continue;
+
                while (matching && *p && *leftOver) {
                        /* Skip over any /s */
                        while (yaffsfs_IsPathDivider(*p))