commit | 42f18ab3a635dda68a71f120b409251a588424dc | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Sat Mar 16 18:48:21 2019 -0700 |
committer | Sam Lantinga <slouken@libsdl.org> | Sat Mar 16 18:48:21 2019 -0700 |
tree | e245350e131ad3c937761373a33eb8b3402b23c6 | |
parent | 31c6c491c36c30351afda0ff48edfd2694ca3916 [diff] |
Fixed bug 4525 - Fix crash in ALSA_HotplugThread caused by bad return value check Anthony Pesch Fix snd_device_name_hint return value check According to the ALSA documentation, snd_device_name_hint returns 0 on success, otherwise a negative error code. The code previously only considered -1 to be an error, which let other error codes through resulting in a segfault when hints (which was NULL) was dereferenced