]> Kevux Git Server - fll/commitdiff
Cleanup: Add extra parenthesis to prevent warning from clang.
authorKevin Day <kevin@kevux.org>
Sat, 5 Aug 2023 00:33:08 +0000 (19:33 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 5 Aug 2023 00:33:08 +0000 (19:33 -0500)
level_0/f_memory/c/memory.c

index 9e9cc5b056971af11730d6c4e3ef6e978360b936..1f6c9297193b0b98bf738012fc60d9cd82e579d8 100644 (file)
@@ -83,7 +83,7 @@ extern "C" {
     // Prevent double-allocations and unnecessary frees.
     if (*pointer || !length) return F_data_not;
 
-    if (*pointer = calloc(length, size)) return F_none;
+    if ((*pointer = calloc(length, size))) return F_none;
 
     return F_status_set_error(F_memory_not);
   }