Fix several coverity-found defects
cover Fix several coverity-found defects
I ran Coverity over blktrace, and while I didn't fix everything, here are patches for several.
Please do review, sometimes my eyes glaze over as I go through the defect list, hopefully I didn't do anything silly. :)
Thanks,
-Eric