summaryrefslogtreecommitdiff
path: root/bin
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2016-02-04 20:36:25 +0100
committerSylvain Pineau <sylvain.pineau@canonical.com>2016-02-04 20:36:25 +0100
commita0c061d0344902789259281f388fbf07fc8692aa (patch)
treeedb81d68f96c2ad13885e992c02a8c4221d3d73c /bin
parent094a7219076e26436280ceab22fb91ad9751c2a6 (diff)
providers:checkbox:bin:pulse-active-port-change: Init port_availability
To None Fixes: https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1333300
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pulse-active-port-change1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pulse-active-port-change b/bin/pulse-active-port-change
index 06324442..f2d95277 100755
--- a/bin/pulse-active-port-change
+++ b/bin/pulse-active-port-change
@@ -72,6 +72,7 @@ class AudioPlugDetection:
cfg = set()
for record in doc.record_list:
active_port = None
+ port_availability = None
# We go through the attribute list once to try to find an active port
for attr in record.attribute_list:
if attr.name == "Active Port":