Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conditional jump on unitialised value
This fixes a valgrind detected error. We check that the number of real max sectors is greater than zero before incrementing the value by 1. However ocassionaly the ioctl call may not be able to obtain the dco and therefore the ioctl data block is never populated. By zeroing the data block prior to use and if it is not populated by the ioctl call then the calculated real max sectors will be zero and no increment will occur which is what we want.
- Loading branch information