Reacted on compiler warnings

This commit is contained in:
2007-09-04 22:56:50 +00:00
parent 970e2798ba
commit 6841cb68e5
3 changed files with 3 additions and 1 deletions

View File

@ -409,6 +409,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
} else {
ret = burn_stdio_read(fd, (char *) d->buffer->data,
cpy_size, d, 0);
err = 0;
if (ret <= 0)
err = BE_CANCELLED;
}