[4440] in Moira

home help back first fref pref prev next nref lref last post

ca.gen warning

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Thu May 11 11:39:26 2006

Message-Id: <200605111539.k4BFdJHN005069@bearing-an-hourglass.mit.edu>
From: Jonathon Weiss <jweiss@MIT.EDU>
To: moiradev@MIT.EDU
Date: Thu, 11 May 2006 11:39:19 -0400


While I was looking at the dcm.log the other day, I noticed the
following warning.

May  8 13:21:30 <3742> Use of uninitialized value in string ne at /moira/bin/ca.gen line 60.

I believe the following (as yet untested) patch wil make it go away.

Index: ca.gen
===================================================================
RCS file: /mit/moiradev/repository/moira/gen/ca.gen,v
retrieving revision 1.2
diff -u -r1.2 ca.gen
--- ca.gen	15 Sep 2000 05:23:22 -0000	1.2
+++ ca.gen	11 May 2006 15:37:18 -0000
@@ -54,6 +54,7 @@
 
 $sth->execute || exit $MR_DBMS_ERR;
 
+$last = "";
 while (($login, $name, $dir) = $sth->fetchrow_array) {
     $dir =~ /(\/.*)\//;
     $path = $1;



	Jonathon

home help back first fref pref prev next nref lref last post