sheepy

build system (sheepy) and package manager (spm) for C
git clone https://spartatek.se/git/sheepy.git
Log | Files | Refs | README | LICENSE

commit 97d385d567e70e25d7c2e5e3ceee71feb3d7f0a7
parent 2748c74c2024e64e4fd6cd06ec5dd78c93ffbf3c
Author: Remy Noulin <loader2x@gmail.com>
Date:   Mon,  7 Jun 2021 21:54:19 +0200

handle OOM when allocating the function array in the class template

src/sheepy.h | 3 +++
1 file changed, 3 insertions(+)

Diffstat:
Msrc/sheepy.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/sheepy.h b/src/sheepy.h @@ -233,6 +233,9 @@ void initiateAllocateClassTemplate(classTemplatet **self) {\n\ isError(*self, malloc(sizeof(classTemplatet))) return;\n\ if (*self) {\n\ initiateClassTemplate(*self);\n\ + if (!(*self)->f) {\n\ + finishClassTemplate(self);\n\ + }\n\ }\n\ }\n\ }\n\