diff options
author | ache <ache@FreeBSD.org> | 1998-11-02 08:56:30 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-11-02 08:56:30 +0000 |
commit | 3061d8cac4654bdff8452c088a30469ce8eb3c73 (patch) | |
tree | 418aad899283b9101e5c50fa684c16d764c4306f /www/webglimpse | |
parent | 65100422c37dd954cc3a332e3218d2f7d98b311e (diff) | |
download | FreeBSD-ports-3061d8cac4654bdff8452c088a30469ce8eb3c73.zip FreeBSD-ports-3061d8cac4654bdff8452c088a30469ce8eb3c73.tar.gz |
fix warning for some undef variables
Diffstat (limited to 'www/webglimpse')
-rw-r--r-- | www/webglimpse/files/patch-ag | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/webglimpse/files/patch-ag b/www/webglimpse/files/patch-ag new file mode 100644 index 0000000..bf6d5b9 --- /dev/null +++ b/www/webglimpse/files/patch-ag @@ -0,0 +1,14 @@ +--- lib/URL.pl.bak Fri Jan 9 08:58:41 1998 ++++ lib/URL.pl Mon Nov 2 11:49:57 1998 +@@ -49,7 +49,10 @@ + $host =~ tr/A-Z/a-z/; + $port = ($3 ne "" ? $3 : $ftp_port); + $path = $4; +- if ($userstring =~ /(.*):(.*)@/) { ++ if (!defined($userstring)) { ++ $userid = undef; ++ $passwd = undef; ++ } elsif ($userstring =~ /(.*):(.*)@/) { + $userid = $1; + $passwd = $2; + } else { |