diff options
Diffstat (limited to '396')
-rw-r--r-- | 396/index.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/396/index.md b/396/index.md new file mode 100644 index 0000000..2f9614e --- /dev/null +++ b/396/index.md @@ -0,0 +1,6 @@ +Title: Don't use assert to check if realloc() failed +Author: rodarima +Created: Sat, 10 May 2025 19:05:55 +0000 +State: closed + +Avoid using assert as when building with NDEBUG defined they become a no-operation so the realloc is never done. Always perform the check and exit accordingly.
\ No newline at end of file |