From 3cc53f58e4c0f0aa7b91c0c6919066470b0f0f91 Mon Sep 17 00:00:00 2001 From: gerald Date: Wed, 5 Aug 2009 15:39:29 +0000 Subject: Squelch a couple of Clang Static Analyzer warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29304 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-iostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tap-iostat.c') diff --git a/tap-iostat.c b/tap-iostat.c index bb1180479b..8ff9e3078c 100644 --- a/tap-iostat.c +++ b/tap-iostat.c @@ -530,7 +530,7 @@ register_io_tap(io_stat_t *io, int i, const char *filter) break; } } - if(io->items[i].calc_type!=CALC_TYPE_BYTES){ + if(hfi && io->items[i].calc_type!=CALC_TYPE_BYTES){ /* check that the type is compatible */ switch(hfi->type){ case FT_UINT8: -- cgit v1.2.3