diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 13:24:00 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 13:24:00 (EDT) |
commit | 176161e071d50ee2f4873d21f8396c03a929c45d (patch) | |
tree | a0cd8044e7dfb90ad906009babafb60f57701995 | |
parent | 5ca9f9a969dd9af31c31b0a1549336140f668440 (diff) |
ob_parse_changelog(), ob_parse_control(): Explicitly assign null strings
POSIX say, "If value is not specified, the variable shall be given a
null value." Make this explicit, for consistency.
-rw-r--r-- | lib/changelog.sh | 2 | ||||
-rw-r--r-- | lib/control.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh index 83f4ca1..56a53e7 100644 --- a/lib/changelog.sh +++ b/lib/changelog.sh @@ -80,7 +80,7 @@ ob_parse_changelog() line_nr=0 expect='first_heading' - while IFS= read line; do + while IFS='' read line; do line_nr=$(($line_nr + 1)) case "${line}" in '') diff --git a/lib/control.sh b/lib/control.sh index 17c1ca8..6e199de 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -89,7 +89,7 @@ ob_parse_control() line_nr=0 - while IFS= read -r line; do + while IFS='' read -r line; do line_nr=$(($line_nr + 1)) case "${line}" in '') |