]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd-run-hooks: set vars to blank
authorRoy Marples <roy@marples.name>
Sat, 20 Jan 2018 20:37:48 +0000 (20:37 +0000)
committerRoy Marples <roy@marples.name>
Sat, 20 Jan 2018 20:37:48 +0000 (20:37 +0000)
hooks/dhcpcd-run-hooks.in

index 440e25c97f83d100ade841e7fb160ed649af8bf2..6e506dab997ab4b39ddc6e71c6be856774e27c7e 100644 (file)
@@ -18,6 +18,7 @@ _detected_init=false
 # Ensure that all arguments are unique
 uniqify()
 {
+       result=
        for i do
                case " $result " in
                        *" $i "*);;
@@ -33,6 +34,7 @@ uniqify()
 # Otherwise we just use what we have.
 list_interfaces()
 {
+       ifaces=
        for i in $interface_order; do
                for x in "$1"/$i.*; do
                        [ -f "$x" ] && ifaces="$ifaces${ifaces:+ }${x##*/}"