device is not compared with NULL in ao_play()
This bug report is for libao-0.8.3. The "Version" selector of your Bugzilla is
out of date.
ogg123 crashes on Solaris if /dev/audio doesn't exist. The crash happends in
ao_play() line 631 of src/audio_output.c:
if (device->swap_buffer != NULL) {
IMO there's a missing "if (device == NULL) return 0;" although ogg123 should not
call ao_play() with device == NULL.I would also insert NULL checks in ao_close()
just because someone could accidently call it with device == NULL.
BTW, in doc/ao_play.html "ao_play" is wrongly called "ao_open".