iolog: fix reported defect from coverity scan