diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-13 19:06:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-13 19:06:28 +0000 |
commit | 9076e8d14f4878d4ce5a17be3820c47d62d4ce83 (patch) | |
tree | 00d7fa48b5d54d1a87f6b4aaf29d80edac056ac7 /cpukit | |
parent | 2007-07-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-9076e8d14f4878d4ce5a17be3820c47d62d4ce83.tar.bz2 |
2007-07-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/mount.c: Allow null for output parameter.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 34241799f8..7164bfd3dd 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2007-07-13 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libcsupport/src/mount.c: Allow null for output parameter. + 2007-07-12 Joel Sherrill <joel.sherrill@oarcorp.com> * shttpd/compat_rtems.c, shttpd/compat_rtems.h: Add port to listen on diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index bec64eb701..7b99dfae7d 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -229,7 +229,8 @@ int mount( Chain_Append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); - *mt_entry = temp_mt_entry; + if ( mt_entry ) + *mt_entry = temp_mt_entry; return 0; |