From a889301436b70b221e818db507204be52d74da48 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 23 Apr 2019 16:12:56 -0400 Subject: parse_control(): Fix params --- (limited to 'src') diff --git a/src/control.sh b/src/control.sh index 79f7278..2a2d719 100644 --- a/src/control.sh +++ b/src/control.sh @@ -39,9 +39,11 @@ _parse_control_error() parse_control() { + local file="${1}" local field_cb="${2}" local paragraph_cb="${3}" local req_fields="${4}" + local line_nr= local in_paragraph= local line= local para_req_fields= @@ -49,9 +51,7 @@ parse_control() local name= local value= - file="${1}" line_nr=0 - in_paragraph='false' while IFS='' read -r line; do -- cgit v0.9.1