openbsd-ports/comms/amtterm/patches/patch-amttool
2022-03-11 18:26:24 +00:00

12 lines
323 B
Plaintext

--- amttool.orig Sat Jun 2 12:56:35 2012
+++ amttool Sat Jun 2 12:58:08 2012
@@ -8,7 +8,7 @@ my $amt_host = shift;
my $amt_port = "16992";
my $amt_proto = 'http';
-if ($amt_host =~ /([^:]+):(\d+)/) {
+if ($amt_host && $amt_host =~ /([^:]+):(\d+)/) {
$amt_host = $1;
$amt_port = $2;
if ($amt_port == 16993) {