From a4586e2e472c86b659eb5df4f049e8e414859517 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 4 Aug 2023 19:33:08 -0500 Subject: [PATCH] Cleanup: Add extra parenthesis to prevent warning from clang. --- level_0/f_memory/c/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_memory/c/memory.c b/level_0/f_memory/c/memory.c index 9e9cc5b..1f6c929 100644 --- a/level_0/f_memory/c/memory.c +++ b/level_0/f_memory/c/memory.c @@ -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); } -- 1.8.3.1