diff options
author | michael-grunder <michael.grunder@gmail.com> | 2023-07-17 10:40:55 -0700 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2023-07-25 11:16:07 -0700 |
commit | e07ae7d3b6248be8be842eca3e1e97595a17aa1a (patch) | |
tree | 542b96530e6a7a1f575a599d40f29bf660bcf967 /examples/example-ssl.c | |
parent | bfe45d9f80ae5802fe3547ceccd03e1a66d41062 (diff) |
Add a panic helper for non-assert aborts.
We merged a fix for a "maybe uninitialized" warning in #1209, but after
merging there could actually have then been a double free.
The reason is that when compiling with NDEBUG our assert macro becomes a
no-op, meaning that execution would no longer stop after `assert(NULL)`.
This commit just adds a simple panic macro which will execute regardless
of whether NDEBUG is defined or not.
Diffstat (limited to 'examples/example-ssl.c')
0 files changed, 0 insertions, 0 deletions