Skip to content

Commit

Permalink
Remove old variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and a-h-abdelsalam committed Jun 14, 2024
1 parent 60af6e4 commit 98bf40b
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 98bf40b

Please sign in to comment.