From 176161e071d50ee2f4873d21f8396c03a929c45d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 13:24:00 -0400 Subject: 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. --- 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 '') -- cgit v0.9.1