madwifi: clear variables used in for loop
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 3 Jun 2009 13:53:10 +0000 (13:53 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 3 Jun 2009 13:53:10 +0000 (13:53 +0000)
SVN-Revision: 16308

package/madwifi/files/lib/wifi/madwifi.sh

index f9a06b7af6aafcb8cd9c69c8c559ca4b8144b05c..7056611f638a6732dc0544f03506501bca2047ab 100755 (executable)
@@ -128,8 +128,7 @@ enable_atheros() {
 
        local first=1
        for vif in $vifs; do
-               local start_hostapd vif_txpower
-               nosbeacon=
+               local start_hostapd= vif_txpower= nosbeacon=
                config_get ifname "$vif" ifname
                config_get enc "$vif" encryption
                config_get eap_type "$vif" eap_type