Fix a = vs == error in writev_handler