fix non-initialized variables

This commit is contained in:
Dirk 2018-03-02 21:02:16 +01:00
parent c636a82b0a
commit ef594c4e1f

View File

@ -682,6 +682,10 @@ fileout_json_print_parameter() {
fileout_json_finding() {
local target
local finding="$3"
local cve="$4"
local cwe="$5"
local hint="$6"
if "$do_json"; then
"$FIRST_FINDING" || echo -n "," >> "$JSONFILE"
@ -804,6 +808,7 @@ fileout_insert_warning() {
# ID, SEVERITY, FINDING, CVE, CWE, HINT
fileout() {
local severity="$2"
local cve="$4"
local cwe="$5"
local hint="$6"