зеркало из https://github.com/microsoft/git.git
gitweb: fix use of uninitialized value.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
b77aeb249a
Коммит
46b059d718
|
@ -779,9 +779,11 @@ sub mimetype_guess_file {
|
|||
open(MIME, $mimemap) or return undef;
|
||||
while (<MIME>) {
|
||||
my ($mime, $exts) = split(/\t+/);
|
||||
my @exts = split(/\s+/, $exts);
|
||||
foreach my $ext (@exts) {
|
||||
$mimemap{$ext} = $mime;
|
||||
if (defined $exts) {
|
||||
my @exts = split(/\s+/, $exts);
|
||||
foreach my $ext (@exts) {
|
||||
$mimemap{$ext} = $mime;
|
||||
}
|
||||
}
|
||||
}
|
||||
close(MIME);
|
||||
|
|
Загрузка…
Ссылка в новой задаче