From 106f4ac8c9a61c0bc8b005f4e4071ea257ab4850 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 14 Feb 2020 08:25:22 +0100 Subject: [PATCH] Fix useless assignement to pointer As reported by cppcheck: src/defi.c:18:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] defi = NULL; ^ --- src/defi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/defi.c b/src/defi.c index 1688ab3..83c5d36 100644 --- a/src/defi.c +++ b/src/defi.c @@ -15,7 +15,6 @@ Defi_t * defi_create(Config_io_t * io, nodeindex_t size){ void defi_destroy(Defi_t * defi){ free (defi); - defi = NULL; } void defi_run(Defi_t * defi){