diff options
author | wm4 <wm4@nowhere> | 2015-01-20 14:32:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-20 14:32:01 +0100 |
commit | 1e6b4d31aa1b57bc03e1d0d2c022fb6d1028f9fa (patch) | |
tree | d5e81b3b6a37c34d69407f127b2faf8aba3b7b0f /player/audio.c | |
parent | d44b4ccba1bfbcfb04316016b8f61441b3ef451e (diff) | |
download | mpv-1e6b4d31aa1b57bc03e1d0d2c022fb6d1028f9fa.tar.bz2 mpv-1e6b4d31aa1b57bc03e1d0d2c022fb6d1028f9fa.tar.xz |
ao_coreaudio: reset possibly random errno value
In general, you need to check errno when using strtol(), but as far as I
know, strtol() won't reset errno on success. This has to be done
manually. The code could have failed sporadically if strtol() succeeded,
and errno was already set to one of the checked values.
(This strtol() still isn't fully error checked, but I don't know if it's
intentional, e.g. for parsing a numeric prefix only.)
Diffstat (limited to 'player/audio.c')
0 files changed, 0 insertions, 0 deletions