[CWB] [PATCH] fixing some uninitialized variables warnings

Alberto Simões ambs at di.uminho.pt
Mon Nov 8 21:43:13 CET 2010


Hello

Sometimes the error function issue some warnings on uninitialized values 
being concatenated in a string.

This patch fixes them. Let me know when/if it gets applied to the SVN tree.

Thank you
ambs
-- 
Alberto Simões
-------------- next part --------------
Index: lib/CWB/CQP.pm
===================================================================
--- lib/CWB/CQP.pm	(revision 190)
+++ lib/CWB/CQP.pm	(working copy)
@@ -727,7 +727,7 @@
   }
   else {
     warn "\n", "=+===CWB::CQP ERROR=====\n", # default behaviour is to issue a warning on stderr
-      (map {" | $_\n"} @_), "=+======================\n"; 
+      (map {" | ".($_||"")."\n"} @_), "=+======================\n"; 
   }
 }
 


More information about the CWB mailing list