[packages] tinyproxy: cope with empty flag options
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 20 Nov 2010 19:27:35 +0000 (19:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 20 Nov 2010 19:27:35 +0000 (19:27 +0000)
SVN-Revision: 24049

net/tinyproxy/files/tinyproxy.init

index d74fe8e..f81dcd3 100644 (file)
@@ -113,7 +113,7 @@ proxy_flag() {
        local TRUE="${3:-On}"
        local FALSE="${4:-Off}"
 
-       config_get_bool _value "$SECTION" "$OPTION"
+       config_get_bool _value "$SECTION" "$OPTION" 0
        [ "$_value" -eq "1" ] && _value="$TRUE" || _value="$FALSE"
        echo "$OPTION $_value"
 }