summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-23 16:12:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-23 16:12:56 (EDT)
commita889301436b70b221e818db507204be52d74da48 (patch)
tree9913751a6fd580529bdbc5fba5d9bad9ff8db703 /src
parent82ad2287a0c66396e2d3b46c39cc0ee93f9db00d (diff)
parse_control(): Fix params
Diffstat (limited to 'src')
-rw-r--r--src/control.sh4
1 files changed, 2 insertions, 2 deletions
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