From 711c46457ae9fef52c7c529d89c67d0d526f73ef Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 6 May 2013 19:20:25 +0200 Subject: Improve array handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When interpreted as an array, the empty string represents a 1-element array consisting of the empty string. This is actually very reasonable. Reported by: Thomas Bächler --- src/lib/connections/tuntap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/connections/tuntap') diff --git a/src/lib/connections/tuntap b/src/lib/connections/tuntap index d035262..71a8259 100644 --- a/src/lib/connections/tuntap +++ b/src/lib/connections/tuntap @@ -2,7 +2,7 @@ . "$SUBR_DIR/ip" -: ${BindsToInterfaces=} +declare -a BindsToInterfaces tuntap_up() { if is_interface "$Interface"; then -- cgit v1.2.3-24-g4f1b