Fix an uninitialized value warning

This commit is contained in:
Eelco Dolstra 2013-10-04 14:47:30 +02:00
parent ee5b655535
commit 3e54f0a6ab

View file

@ -91,7 +91,7 @@ sub view : Chained('eval') PathPart('') Args(0) {
if ($d == 0) {
$n++;
$found = 1;
if ($build->buildstatus == 3 || $build->buildstatus == 4) {
if ($build->finished != 0 && ($build->buildstatus == 3 || $build->buildstatus == 4)) {
push @{$c->stash->{aborted}}, $build;
} elsif ($build->finished == 0 || $build2->finished == 0) {
push @{$c->stash->{unfinished}}, $build;