minor crashfix

This commit is contained in:
David Rose 2010-06-09 00:58:19 +00:00
parent 60b3920388
commit c80eba7088

View File

@ -1449,9 +1449,12 @@ download_finished(bool success) {
<< ", failed hash check\n";
nout << "expected: ";
_file_spec.output_hash(nout);
nout << "\n got: ";
nout << "\n";
if (_file_spec.get_actual_file() != (FileSpec *)NULL) {
nout << " got: ";
_file_spec.get_actual_file()->output_hash(nout);
nout << "\n";
}
success = false;
}