Skip to content

Commit

Permalink
Remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Feb 25, 2025
1 parent bb8d8bc commit 76127d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3914,7 +3914,7 @@ drop_indexes_cve ()
sql ("DROP INDEX IF EXISTS scap2.cves_by_creation_time_idx");
sql ("DROP INDEX IF EXISTS scap2.cves_by_modification_time_idx");
sql ("DROP INDEX IF EXISTS scap2.cves_by_severity");

sql ("DROP INDEX IF EXISTS scap2.cpe_match_nodes_by_root_id");

sql ("DROP INDEX IF EXISTS scap2.cpe_nodes_match_criteria_by_node_id");
Expand Down
10 changes: 5 additions & 5 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -3762,7 +3762,7 @@ handle_cve_references (resource_t cve_db_id, char *cve_id,
int ret = 0;
cJSON *reference_item;
static GHashTable *urls = NULL;

if (secinfo_fast_init && urls == NULL)
urls = g_hash_table_new (g_str_hash, g_str_equal);

Expand Down Expand Up @@ -3816,7 +3816,7 @@ get_cve_configuration_fields (cJSON* configuration_item,
int *negate)
{
*nodes_array = cJSON_GetObjectItemCaseSensitive (configuration_item,
"nodes");
"nodes");
if (!cJSON_IsArray (*nodes_array))
{
g_warning ("%s: 'nodes' field missing or not an array for %s.",
Expand Down Expand Up @@ -4169,7 +4169,7 @@ handle_cve_cpe_nodes_match_criteria (resource_t cve_db_id,
if (vulnerable)
{
iterator_t cpe_matches;
gchar *quoted_match_criteria_id
gchar *quoted_match_criteria_id
= sql_quote (match_criteria_id);

init_cpe_match_string_matches_iterator (
Expand Down Expand Up @@ -4402,7 +4402,7 @@ get_cve_json_fields (cJSON *vuln_item,
cJSON *descriptions_json = NULL;
cJSON *description_item_json = NULL;
gboolean cvss_metric_is_primary = FALSE;

*cve_id = *vector = NULL;
*published_time = *modified_time = 0;
*score_dbl = SEVERITY_MISSING;
Expand Down Expand Up @@ -4907,7 +4907,7 @@ update_cve_json (const gchar *cve_path,
sql_begin_immediate ();
drop_indexes_cve ();
if (secinfo_fast_init)
{
{
init_cve_copy_buffers (&cves_copy_buffer,
&cve_refs_copy_buffer,
&cpe_match_nodes_copy_buffer,
Expand Down

0 comments on commit 76127d7

Please sign in to comment.