Skip to content

Commit 08f2327

Browse files
committed
Reduce reliance on boxing_log
1 parent d47db6b commit 08f2327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/math_crc64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ dcrc64 * boxing_math_crc64_create(boxing_uint64 seed, boxing_uint64 polynom)
9494
{
9595

9696
dcrc64 * dcrc = malloc(sizeof(dcrc64));
97-
DFATAL(dcrc, "Out of memory");
97+
if (!dcrc) return dcrc;
9898

9999
dcrc->crc = seed;
100100

0 commit comments

Comments
 (0)