[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 d74fe8e4aa75fbb3b05cec8ae92eef5f93b35dda..f81dcd344da5c698f149b350ea33cae502f6bb22 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"
 }