diff options
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_getchild.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_getchild.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_getchild.c b/cpukit/libfs/src/imfs/imfs_getchild.c index 2b47ba2714..dc66e55102 100644 --- a/cpukit/libfs/src/imfs/imfs_getchild.c +++ b/cpukit/libfs/src/imfs/imfs_getchild.c @@ -17,8 +17,10 @@ #include "config.h" #endif +#if defined(RTEMS_DEBUG) + #include <assert.h> +#endif #include <errno.h> -#include <assert.h> #include <string.h> #include "imfs.h" @@ -39,11 +41,13 @@ IMFS_jnode_t *IMFS_find_match_in_dir( * the IMFS code. */ - assert( directory ); + #if defined(RTEMS_DEBUG) + assert( directory ); + assert( name ); + #endif if ( !name ) return 0; - assert( name ); if ( !directory ) return 0; |