diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-03-17 15:11:21 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-03-17 15:11:21 +0100 |
| commit | 2312f39a0d56e55a9a9df282c478173d8d8567b6 (patch) | |
| tree | 5f3ad8f34fc241aac4c5c7dbe20ba25d81b7a031 /src/cc4group.h | |
| parent | da95529c87148fa62cc2d2b3d2725aeb9fc19d64 (diff) | |
| download | cc4group-2312f39a0d56e55a9a9df282c478173d8d8567b6.tar.gz cc4group-2312f39a0d56e55a9a9df282c478173d8d8567b6.zip | |
Add malloc error checking in new, mention the error case in the description and add assert(file) in openFd
Diffstat (limited to 'src/cc4group.h')
| -rw-r--r-- | src/cc4group.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
