Skip to content

Commit 6b078b9

Browse files
committed
Cleanup
1 parent 6162158 commit 6b078b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/at3_standalone/mem.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ void *av_malloc(size_t size) {
5858
ptr = AllocateAlignedMemory(size, 32);
5959
if (!ptr && !size) {
6060
// 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);
61+
return av_malloc(1);
6362
}
6463
return ptr;
6564
}

0 commit comments

Comments
 (0)