IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28921


Ignore:
Timestamp:
Aug 16, 2010, 2:01:21 PM (16 years ago)
Author:
rhenders
Message:

Made safer by initialising variable as 'undef'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/CzarDb.pm

    r28869 r28921  
    1616
    1717    # Call the constructor of the parent class, Person.
    18     my $self = $class->SUPER::new( $_[1], $_[2], $_[3], $_[4],  $_[5], $_[6]);
     18    my $self = $class->SUPER::new($_[1], $_[2], $_[3], $_[4],  $_[5], $_[6]);
    1919
    2020    bless $self, $class;
     
    237237    if (!$query->execute) {return undef;}
    238238
    239     my $minProcessed;
     239    my $minProcessed = undef;
    240240
    241241    ($minProcessed, ${$maxY}, ${$minY}, ${$maxX}, ${$minX}, ${$timeDiff}) = $query->fetchrow_array();
    242242
    243     if (!$minProcessed) {return undef;}
     243    if (!defined $minProcessed) {return undef;}
    244244
    245245    $query = $self->{_db}->prepare(<<SQL);
Note: See TracChangeset for help on using the changeset viewer.