aboutsummaryrefslogtreecommitdiffstats
path: root/tap-iostat.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-08-05 15:39:29 +0000
committerGerald Combs <gerald@wireshark.org>2009-08-05 15:39:29 +0000
commit65be9b68bd27417516c8ffa0e38627607d30cdb7 (patch)
treeaf1e439a200bf17bd6a847dbf0e410cf78d87a0f /tap-iostat.c
parent92b2bcf28add34a5c0734263942732e50af24960 (diff)
Squelch a couple of Clang Static Analyzer warnings.
svn path=/trunk/; revision=29304
Diffstat (limited to 'tap-iostat.c')
-rw-r--r--tap-iostat.c2
1 files changed, 1 insertions, 1 deletions
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: