aboutsummaryrefslogtreecommitdiff
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
commita568e1e63afed4a9a1fb075568eec16ab76c158d (patch)
treef5ccbefcedc52e86e0b48f906c6b2167ec2128d2 /nuttx/fs
parent38efdf0ce37cc3413acee30d966f242aa8a77acd (diff)
downloadpx4-firmware-a568e1e63afed4a9a1fb075568eec16ab76c158d.tar.gz
px4-firmware-a568e1e63afed4a9a1fb075568eec16ab76c158d.tar.bz2
px4-firmware-a568e1e63afed4a9a1fb075568eec16ab76c158d.zip
Add a binary 'loader' so that builtin applications can be executed from the BINFS file system
git-svn-id: http://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 */