diff options
author | Andreas Schwab <schwab@suse.de> | 2001-11-05 14:09:32 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2001-11-05 14:09:32 +0000 |
commit | 3297e2a11e2b09fd7e20af8bc56681e5a0750b25 (patch) | |
tree | 610ddb820c39a02c4a8bf9836be354a95b32dd94 /src/sound.c | |
parent | 9212319ff00686e992e767c88083ca84863604bb (diff) | |
download | emacs-3297e2a11e2b09fd7e20af8bc56681e5a0750b25.tar.gz |
(sound_perror): Save errno from being clobbered.
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sound.c b/src/sound.c index b3c075ba831..d9fd55966a5 100644 --- a/src/sound.c +++ b/src/sound.c @@ -262,12 +262,14 @@ static void sound_perror (msg) char *msg; { + int saved_errno = errno; + turn_on_atimers (1); #ifdef SIGIO sigunblock (sigmask (SIGIO)); #endif - if (errno != 0) - error ("%s: %s", msg, strerror (errno)); + if (saved_errno != 0) + error ("%s: %s", msg, strerror (saved_errno)); else error ("%s", msg); } |