Skip to content

Commit

Permalink
fix(libsinsp): invalid field_info check
Browse files Browse the repository at this point in the history
Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian authored and poiana committed Oct 29, 2024
1 parent b4ca436 commit 0ec8bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/state/dynamic_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class dynamic_struct {
inline bool valid() const {
// note(jasondellaluce): for now dynamic fields of type table are
// not supported, so we consider them to be invalid
return m_index != (size_t)-1 && m_index != typeinfo::index_t::TI_TABLE;
return m_index != (size_t)-1 && m_info.index() != typeinfo::index_t::TI_TABLE;
}

/**
Expand Down

0 comments on commit 0ec8bac

Please sign in to comment.