From 54778d65a58bddb156ba652adf8c5f61c584248c Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 10 Dec 2018 10:18:30 +0600 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmaat=5Fstat=5Foutput=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AF=B9scanner=E5=88=A4=E7=A9=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_stat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entry/Maat_stat.cpp b/src/entry/Maat_stat.cpp index de8fcc3..6d03803 100644 --- a/src/entry/Maat_stat.cpp +++ b/src/entry/Maat_stat.cpp @@ -174,6 +174,10 @@ void maat_stat_output(struct _Maat_feather_t* feather) struct Maat_table_desc* p_table=NULL; struct Maat_table_runtime* table_rt=NULL; time(&now); + if(feather->scanner==NULL) + { + return; + } active_thread_num=alignment_int64_array_cnt(feather->thread_call_cnt, feather->scan_thread_num); outer_mid_cnt=alignment_int64_array_sum(feather->outer_mid_cnt,feather->scan_thread_num); inner_mid_cnt=alignment_int64_array_sum(feather->inner_mid_cnt,feather->scan_thread_num);