Skip to content

Commit

Permalink
fix(c++): re-throw original exception rather than copy
Browse files Browse the repository at this point in the history
Reported by cppcheck

Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist authored and poiana committed Feb 15, 2024
1 parent 7a18795 commit f3491d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userspace/falco/atomic_signal_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ namespace falco
m_handled.store(true, std::memory_order_seq_cst);
}
}
catch (std::exception& e)
catch (std::exception&)
{
if (triggered())
{
m_handled.store(true, std::memory_order_seq_cst);
}
throw e;
throw;
}
return true;
}
Expand Down

0 comments on commit f3491d6

Please sign in to comment.