Fixed uninitialized error flag in the DeviceData struct (Pete Ratzlaff)

Bug sporadically caused output to go unwritten.