Skip to content

Commit

Permalink
Remove stray NULL check.
Browse files Browse the repository at this point in the history
  • Loading branch information
janowagner committed Nov 1, 2019
1 parent 525bf24 commit 30d3a8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/nvti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30d3a8c

Please # to comment.