From 2312f39a0d56e55a9a9df282c478173d8d8567b6 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 17 Mar 2019 15:11:21 +0100 Subject: Add malloc error checking in new, mention the error case in the description and add assert(file) in openFd --- src/cc4group.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cc4group.h') diff --git a/src/cc4group.h b/src/cc4group.h index d15f135..d79f6fe 100644 --- a/src/cc4group.h +++ b/src/cc4group.h @@ -57,8 +57,8 @@ typedef struct { void (*setTmpMemoryStrategy)(const CC4Group_TmpMemoryStrategy strategy); - // allocates and initializes a new group object, like the operator new + // NULL may be returned if the memory allocation (malloc) fails; in this case errno contains additional error information CC4Group* (*new)(void); // destructs the group object and frees all memory used by group, like the operator delete void (*delete)(CC4Group* const this); -- cgit v1.2.3-54-g00ecf