diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-11-02 08:56:30 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-11-02 08:56:30 +0000 |
commit | 033275a86cb11c1622b11e9c7781ba7609821db4 (patch) | |
tree | 05badc908e460ff6ada40f4e07fbddbdfa11da5c /www | |
parent | typo (diff) |
fix warning for some undef variables
Notes
Notes:
svn path=/head/; revision=14306
Diffstat (limited to 'www')
-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 000000000000..bf6d5b9d829a --- /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 { |