From 30d3a8c5abcf8d60c366cb55264a555489040a11 Mon Sep 17 00:00:00 2001 From: Jan-Oliver Wagner Date: Fri, 1 Nov 2019 08:20:38 +0100 Subject: [PATCH] Remove stray NULL check. --- base/nvti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/nvti.c b/base/nvti.c index 899be405..057b1860 100644 --- a/base/nvti.c +++ b/base/nvti.c @@ -1235,8 +1235,7 @@ nvti_set_solution_method (nvti_t *n, const gchar *solution_method) if (!n) return -1; - if (n->solution_method) - g_free (n->solution_method); + g_free (n->solution_method); n->solution_method = g_strdup (solution_method); return 0; }