We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6162158 commit 6b078b9Copy full SHA for 6b078b9
1 file changed
ext/at3_standalone/mem.cpp
@@ -58,8 +58,7 @@ void *av_malloc(size_t size) {
58
ptr = AllocateAlignedMemory(size, 32);
59
if (!ptr && !size) {
60
// Compensate for platforms that don't allow zero-size allocations (not sure if this is actually an issue)
61
- size = 1;
62
- ptr = av_malloc(1);
+ return av_malloc(1);
63
}
64
return ptr;
65
0 commit comments