From 34defd2de8caa7996b81fbacb868727a6e34e122 Mon Sep 17 00:00:00 2001 From: Ed J Date: Wed, 18 Sep 2024 06:15:44 +0000 Subject: [PATCH] avoid uninitialised value warning --- lib/PDL/Graphics/Gnuplot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm index 61970d6..8e9606f 100644 --- a/lib/PDL/Graphics/Gnuplot.pm +++ b/lib/PDL/Graphics/Gnuplot.pm @@ -7272,7 +7272,7 @@ sub _killGnuplot { $z = waitpid($goner,0); } else { - _printGnuplotPipe($this,$suffix,"set term qt 0 close\n") if $this->{terminal} eq 'qt'; + _printGnuplotPipe($this,$suffix,"set term qt 0 close\n") if ($this->{terminal}//'') eq 'qt'; _printGnuplotPipe($this,$suffix,"exit\n"); # Give it 2 seconds to quit, then interrupt it again.