summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/__usrenv.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-08 11:24:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-08 11:26:27 +0200
commit22cd2821de2dcec7117fa0370a495e675de206a4 (patch)
tree4448ed74d0951eb5c6f80347a7d579c93073dfa6 /cpukit/libcsupport/src/__usrenv.c
parentposix: Add auto initializaton for rwlock (diff)
downloadrtems-22cd2821de2dcec7117fa0370a495e675de206a4.tar.bz2
IMFS: Avoid NULL pointer access
Avoid NULL pointer access in IMFS_is_imfs_instance(). File systems mounted via mount() always have a valid type string.
Diffstat (limited to 'cpukit/libcsupport/src/__usrenv.c')
-rw-r--r--cpukit/libcsupport/src/__usrenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/__usrenv.c b/cpukit/libcsupport/src/__usrenv.c
index 71efda9d7f..d032aea4ab 100644
--- a/cpukit/libcsupport/src/__usrenv.c
+++ b/cpukit/libcsupport/src/__usrenv.c
@@ -229,7 +229,8 @@ rtems_filesystem_mount_table_entry_t rtems_filesystem_null_mt_entry = {
.mt_point_node = &rtems_filesystem_global_location_null,
.mt_fs_root = &rtems_filesystem_global_location_null,
.mounted = false,
- .writeable = false
+ .writeable = false,
+ .type = ""
};
rtems_filesystem_global_location_t rtems_filesystem_global_location_null = {