io: use memset instead of { 0 } for initializing array