From 3ace225e0dc350de43988b9aa2b164d7c87c7602 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Mon, 23 May 2016 22:12:19 -0400 Subject: Document wmem null guarantee Change-Id: Ibbbda815b144441f7db2d1920e1551c45e997370 Reviewed-on: https://code.wireshark.org/review/15549 Reviewed-by: Michael Mann Reviewed-by: Dario Lombardo --- epan/wmem/wmem_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'epan/wmem') diff --git a/epan/wmem/wmem_core.h b/epan/wmem/wmem_core.h index df263d2516..fc04524de8 100644 --- a/epan/wmem/wmem_core.h +++ b/epan/wmem/wmem_core.h @@ -40,6 +40,10 @@ extern "C" { * many other functions are available (see the "Modules" list at the top of * the generated doxygen HTML). * + * Any wmem functions which allocate memory are guaranteed to either succeed or + * abort the program. However, they *can* still legally return NULL when the + * amount of requested memory is zero. + * * @{ */ -- cgit v1.2.3