Skip to content

Commit

Permalink
Avoid variable name "new".
Browse files Browse the repository at this point in the history
Apparently using a variable named "new" causes trouble
to the code formatting routines.
  • Loading branch information
janowagner committed Sep 6, 2019
1 parent c0f2ef1 commit a5ca3b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/nvti.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ nvti_set_solution_type (nvti_t *n, const gchar *solution_type)
int
nvti_add_tag (nvti_t *n, const gchar *name, const gchar *value)
{
char *new;
char *newtag;

if (!n)
return (-1);
Expand All @@ -1083,14 +1083,14 @@ nvti_add_tag (nvti_t *n, const gchar *name, const gchar *value)

if (n->tag)
{
new = g_strconcat (n->tag, "|", name, "=", value, NULL);
newtag = g_strconcat (n->tag, "|", name, "=", value, NULL);
g_free (n->tag);
}
else
new = g_strconcat (name, "=", value, NULL);
newtag = g_strconcat (name, "=", value, NULL);

if (new && new[0])
n->tag = new;
if (newtag && newtag[0])
n->tag = newtag;
else
n->tag = NULL;

Expand Down

0 comments on commit a5ca3b8

Please # to comment.