aboutsummaryrefslogtreecommitdiff
path: root/396
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-09-28 20:26:15 +0200
committerRodrigo <rodarima@gmail.com>2025-09-28 23:10:55 +0200
commitfb510ea86be5ceb9e91573890242581fdbd77ad8 (patch)
treed819fe40683592008d136727f5a0b03e48dc1164 /396
Initial versionHEADmain
Diffstat (limited to '396')
-rw-r--r--396/index.md6
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