From Evan Huus: Unnecessary branch in dfvm.c

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7354

svn path=/trunk/; revision=43192
This commit is contained in:
Bill Meier 2012-06-11 02:09:48 +00:00
parent 7c7856d41b
commit ec84ce59b5
1 changed files with 1 additions and 5 deletions

View File

@ -316,11 +316,7 @@ read_tree(dfilter_t *df, proto_tree *tree, header_field_info *hfinfo, int reg)
while (hfinfo) {
finfos = proto_get_finfo_ptr_array(tree, hfinfo->id);
if (!finfos) {
hfinfo = hfinfo->same_name_next;
continue;
}
else if (g_ptr_array_len(finfos) == 0) {
if ((finfos == NULL) || (g_ptr_array_len(finfos) == 0)) {
hfinfo = hfinfo->same_name_next;
continue;
}