Skip to content

Commit

Permalink
Merge pull request #2220 from greenbone/remove-var
Browse files Browse the repository at this point in the history
Remove old variable
  • Loading branch information
a-h-abdelsalam authored Jun 14, 2024
2 parents 60af6e4 + 98bf40b commit a2cb9d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,6 @@ config_insert_preferences (config_t config,
else if (preference->type)
{
gchar *quoted_type, *quoted_nvt_oid, *quoted_preference_name;
gchar *quoted_default;
gchar *quoted_preference_id;

/* Presume NVT or OSP preference. */
Expand All @@ -2375,9 +2374,6 @@ config_insert_preferences (config_t config,
: sql_quote (preference->type);
quoted_value = sql_quote (value->str);
g_string_free (value, TRUE);
quoted_default = preference->default_value
? sql_quote (preference->default_value)
: NULL;

/* NVT preference */
/* OID:PrefID:PrefType:PrefName value */
Expand All @@ -2401,7 +2397,6 @@ config_insert_preferences (config_t config,
g_free (quoted_preference_name);
g_free (quoted_type);
g_free (quoted_value);
g_free (quoted_default);
g_free (quoted_preference_id);
}
else
Expand Down

0 comments on commit a2cb9d0

Please sign in to comment.