Commit b50e8880 authored by Colin Watson's avatar Colin Watson

Fix use of uninitialised value $buf in name_release.

parent f9525f60
......@@ -2,6 +2,7 @@ debmirror (1:2.28) UNRELEASED; urgency=medium
* Change priority to optional, since "Priority: extra" is now deprecated.
* Move VCS to salsa.debian.org.
* Fix use of uninitialised value $buf in name_release.
-- Colin Watson <cjwatson@debian.org> Sun, 19 Nov 2017 10:11:27 +0000
......
......@@ -2153,10 +2153,11 @@ sub get_release {
sub name_release {
my ($type, $tdir, $dist) = @_;
my ($buf, $codename, $suite);
my ($codename, $suite);
my $origin = "unknown";
if (-f "$tdir/Release") {
my $buf = "";
if (open RELEASE, "<$tdir/Release") {
while (<RELEASE>) {
last if /^MD5Sum:/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment