Skip to content

Commit

Permalink
update: apply review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Aponte <[email protected]>
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
2 people authored and poiana committed May 7, 2024
1 parent c8f2571 commit c4f7658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/parsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,7 @@ std::string sinsp_parser::parse_dirfd(sinsp_evt *evt, std::string_view name, int
/* This should never happen but just to be sure. */
if(name.data() != nullptr)
{
is_absolute = (name.size() > 0 && name[0] == '/');
is_absolute = (!name.empty() && name[0] == '/');
}

std::string tdirstr;
Expand Down

0 comments on commit c4f7658

Please sign in to comment.