summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-16 19:08:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-16 19:08:23 +0000
commit357d086cf3b85cded5221dab092c917a3fa3c285 (patch)
treef5ccbefcedc52e86e0b48f906c6b2167ec2128d2 /nuttx/fs
parent880aa24ce3cb2bae6decbbdb2650f91a2547ba53 (diff)
downloadpx4-nuttx-357d086cf3b85cded5221dab092c917a3fa3c285.tar.gz
px4-nuttx-357d086cf3b85cded5221dab092c917a3fa3c285.tar.bz2
px4-nuttx-357d086cf3b85cded5221dab092c917a3fa3c285.zip
Add a binary 'loader' so that builtin applications can be executed from the BINFS file system
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5525 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fs_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fs_mount.c b/nuttx/fs/fs_mount.c
index 1b3da8dc3..a91e7d366 100644
--- a/nuttx/fs/fs_mount.c
+++ b/nuttx/fs/fs_mount.c
@@ -221,7 +221,7 @@ int mount(FAR const char *source, FAR const char *target,
/* Find the specified filesystem. Try the block driver file systems first */
#ifdef BDFS_SUPPORT
- if ((mops = mount_findfs(g_bdfsmap, filesystemtype)) != NULL)
+ if (source && (mops = mount_findfs(g_bdfsmap, filesystemtype)) != NULL)
{
/* Make sure that a block driver argument was provided */