]> git.sur5r.net Git - i3/i3/commitdiff
fixing uninitialized warnings in testcases 3104/head
authorJohannes Lange <johannes.lange@rwth-aachen.de>
Tue, 26 Dec 2017 12:39:19 +0000 (13:39 +0100)
committerJohannes Lange <johannes.lange@rwth-aachen.de>
Wed, 27 Dec 2017 08:24:35 +0000 (09:24 +0100)
testcases/t/195-net-active-window.t

index 18245dfc2149b22bbcbbfef39b5fb5cac473afef..f9f883cbd7756a45bd48d85440a216afb8ebe222 100644 (file)
@@ -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