filedesc: plug 2 write-only variables

Reported by: Coverity
CID: 1245745, 1245746