[SCM] Debian package checker branch, master, updated. 2.5.10-108-gb86486f
The following commit has been merged in the master branch:
commit b86486fe9d9964e4f270272c686c84dbb704bfa0
Author: Niels Thykier <niels@thykier.net>
Date: Wed Aug 8 16:39:49 2012 +0200
L::Output: Intialize verbosity_level and color in new
Initialize verbositiy_level and color in the L::Output constructor to
ensure they are defined. This avoids a bunch of "undef" warnings, if
the client code does not explicitly set these values.
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/lib/Lintian/Output.pm b/lib/Lintian/Output.pm
index 54edf75..571aaaa 100644
--- a/lib/Lintian/Output.pm
+++ b/lib/Lintian/Output.pm
@@ -146,6 +146,9 @@ sub new {
$self->colors({%default_colors});
$self->issuedtags({});
+ # Set defaults to avoid "uninitialized" warnings
+ $self->verbosity_level (0);
+ $self->color ('never');
return $self;
}
--
Debian package checker
Reply to: