From 95797d58aa87dbce34fe8eedf4496ea9daaaaada Mon Sep 17 00:00:00 2001 From: tappro Date: Fri, 16 Sep 2005 16:11:27 +0000 Subject: [PATCH] do LASSERT if *name is not NULL --- lustre/mds/mds_audit_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/mds_audit_path.c b/lustre/mds/mds_audit_path.c index 59c1145..637aeea 100644 --- a/lustre/mds/mds_audit_path.c +++ b/lustre/mds/mds_audit_path.c @@ -600,7 +600,8 @@ out: } list_del_init(&item->link); OBD_FREE(item, sizeof(*item)); - LASSERT(strlen(*name) < *namelen); + if (*name) + LASSERT(strlen(*name) < *namelen); } RETURN(rc); } -- 1.8.3.1