From: Johannes Lange Date: Tue, 26 Dec 2017 12:39:19 +0000 (+0100) Subject: fixing uninitialized warnings in testcases X-Git-Tag: 4.15~16^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc6a099bed22aef099bd7265c944f6dd1c7908d6;p=i3%2Fi3 fixing uninitialized warnings in testcases --- diff --git a/testcases/t/195-net-active-window.t b/testcases/t/195-net-active-window.t index 18245dfc..f9f883cb 100644 --- a/testcases/t/195-net-active-window.t +++ b/testcases/t/195-net-active-window.t @@ -24,7 +24,7 @@ use i3test; sub send_net_active_window { my ($id, $source) = @_; - $source = ($source eq 'pager' ? 2 : 0); + $source = (((defined $source) && ($source eq 'pager')) ? 2 : 0); my $msg = pack "CCSLLLLLLL", X11::XCB::CLIENT_MESSAGE, # response_type