checksum: avoid comparison on uninitialized value
commit9457434502017417fca22baa02d99920b10263e1
authorEric Wong <normalperson@yhbt.net>
Wed, 7 Nov 2012 21:35:09 +0000 (7 21:35 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 6 Jan 2013 20:44:06 +0000 (6 20:44 +0000)
tree2bd9fcd06fd4d1ac2f2d007fa01c7d0daaab9da8
parent9614260123d92894d29dbcd36af36e0adfa9d364
checksum: avoid comparison on uninitialized value

$class->{hashtype} is undef by default for classes where no
checksums are configured.

Since clients can force checksum verification in create_close
regardless of class, we can end up with a Checksum object for
FIDs regardless of which class the FID is in.
lib/MogileFS/Checksum.pm