Skip to content

Commit

Permalink
Small amendment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed Sep 24, 2024
1 parent e0995fc commit d0c6ffd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,9 @@ cve_scan_host (task_t task, report_t report, gvm_host_t *gvm_host)
prognosis_report_host = 0;

gboolean use_json = FALSE;

Check warning on line 3300 in src/manage.c

View check run for this annotation

Codecov / codecov/patch

src/manage.c#L3300

Added line #L3300 was not covered by tests
if (sql_int64_0 ("SELECT count(*) FROM scap.cpe_match_nodes") > 0)
if (sql_int64_0 ("SELECT count(1) FROM information_schema.tables"
" WHERE table_schema = 'scap'"
" AND table_name = 'cpe_match_nodes';") > 0)
use_json = TRUE;

Check warning on line 3304 in src/manage.c

View check run for this annotation

Codecov / codecov/patch

src/manage.c#L3304

Added line #L3304 was not covered by tests

if (use_json)
Expand Down

0 comments on commit d0c6ffd

Please sign in to comment.