Changeset b125668


Ignore:
Timestamp:
May 3, 2010, 7:58:50 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.6
Children:
9e0bc3b
Parents:
774f439
git-author:
Nelson Elhage <nelhage@mit.edu> (04/28/10 11:10:38)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/03/10 19:58:50)
Message:
Fix an 'uninitialized' warning in recv:shift-right

I have no idea why I didn't catch this when I was fixing
recv_shift_left.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl.pm

    ref4700c rb125668  
    535535    my $func = shift;
    536536    my $delta = shift;
    537     $delta = 10 unless int($delta) > 0;
     537    $delta = 10 unless defined($delta) && int($delta) > 0;
    538538    my $shift = BarnOwl::recv_getshift();
    539539    BarnOwl::recv_setshift($shift+$delta);
Note: See TracChangeset for help on using the changeset viewer.