From b416c7be3e701fb1c3a16d460294d4786badc4bb Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Sun, 11 Feb 2024 04:13:21 +0100 Subject: [PATCH] statiegeld: fix warning for undef $input on ^D --- plugins/statiegeld | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/statiegeld b/plugins/statiegeld index 833714e..07b8ac2 100644 --- a/plugins/statiegeld +++ b/plugins/statiegeld @@ -124,6 +124,7 @@ sub hook_input { # args via @_ for mutable alias my ($class, $cart, $input, $split_input) = @_; $S or return; + defined $input or return; # Extra newline before new "Scan products for ..." line. print "\n" if defined $input and $input eq "" and $split_input;