Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not complain on NULL returned when allocating 0 objects
According to documentation on malloc/calloc, when zero allocation size is requested, it is allowed to return either unique pointer or NULL. In the latter case, FMU was previously incorrectly complaining about "out of memory". Belonging to [master]: - OpenModelica/OMCompiler#2844
- Loading branch information
1 parent
52cd129
commit 1b6a960
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters