diff options
author | Andreas Heinig <andreas.heinig@cs.tu-dortmund.de> | 2013-05-15 15:14:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-16 11:40:22 +0200 |
commit | d2d09eac21cef4c88274ea8fccb0e7935a5c4992 (patch) | |
tree | ef721f25c39395869fd56690cfa432b939a3cd69 | |
parent | Add c++ guard to header. (diff) | |
download | rtems-d2d09eac21cef4c88274ea8fccb0e7935a5c4992.tar.bz2 |
shell: Fix NULL pointer access
-rw-r--r-- | cpukit/libmisc/shell/main_lsof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_lsof.c b/cpukit/libmisc/shell/main_lsof.c index ed0c87c1de..2c6ece1653 100644 --- a/cpukit/libmisc/shell/main_lsof.c +++ b/cpukit/libmisc/shell/main_lsof.c @@ -44,7 +44,7 @@ static void lsof(void) mt_entry->writeable ? 'W' : 'R', mt_entry->type, mt_entry->target, - mt_entry->dev, + mt_entry->dev == NULL ? "none" : mt_entry->dev, mt_entry->mt_fs_root, mt_entry->mt_fs_root->location.node_access ); |