From 31ae15f0eb4c6a70e4d459e33265d570128cb3eb Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 13 Dec 2022 11:14:59 +1000 Subject: [PATCH] * fix getopts --- mqtt2zabbix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqtt2zabbix b/mqtt2zabbix index 9954e40..d56b728 100755 --- a/mqtt2zabbix +++ b/mqtt2zabbix @@ -9,7 +9,8 @@ use Zabbix::Sender; use Getopt::Std; use YAML; -my ($cfg, $mqtt, $opts, $zbx); +my $opts = {}; +my ($cfg, $mqtt, $zbx); sub usage { print "Usage: $0 -c [-h] [-v]\n";