[LON-CAPA-cvs] cvs: loncom(version_2_2_X) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 28 Sep 2006 18:23:33 -0000


albertel		Thu Sep 28 14:23:33 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - prevent some startup warnings
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.782.2.1 loncom/lonnet/perl/lonnet.pm:1.782.2.2
--- loncom/lonnet/perl/lonnet.pm:1.782.2.1	Wed Sep 27 21:42:32 2006
+++ loncom/lonnet/perl/lonnet.pm	Thu Sep 28 14:23:32 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.782.2.1 2006/09/28 01:42:32 albertel Exp $
+# $Id: lonnet.pm,v 1.782.2.2 2006/09/28 18:23:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7229,7 +7229,7 @@
        chomp($configline);
        if ($configline) {
 	   my ($host,$type) = split(':',$configline,2);
-	   if ($type eq '') { $type = 'default' };
+	   if (!defined($type) || $type eq '') { $type = 'default' };
 	   push(@{ $spareid{$type} }, $host);
        }
     }