From c889fb8f9176046ccb14bd342ad10f3cf9f5b300 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 25 Nov 2018 14:40:49 +0000 Subject: [PATCH] distort-stl: debugging, avoid a warning Use of uninitialized value $debug in numeric ge (>=) at ./distort-stl line 107. Signed-off-by: Ian Jackson --- distort-stl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distort-stl b/distort-stl index b5ccb99..68290c4 100755 --- a/distort-stl +++ b/distort-stl @@ -32,7 +32,7 @@ use Data::Dumper; sub TAU () { M_PI * 2; } -our $debug = $ENV{DISTORT_DEBUG}; +our $debug = $ENV{DISTORT_DEBUG} // 0 ; my $ps = $ENV{DISTORT_PS}; if ($ps) { -- 2.30.2