From: malc Date: Sat, 7 Aug 2010 16:03:05 +0000 (+0400) Subject: audio/sdl: return on error X-Git-Tag: xen-15-06-02~7153 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=60592edde46e26f9baad650538d96ca5ef45c603;p=people%2Fsstabellini%2Fqemu-dm.git%2F.git audio/sdl: return on error Signed-off-by: malc --- diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c index 0f23fd372a..b74dcfa734 100644 --- a/audio/sdlaudio.c +++ b/audio/sdlaudio.c @@ -191,6 +191,7 @@ static int sdl_open (SDL_AudioSpec *req, SDL_AudioSpec *obt) err = sigfillset (&new); if (err) { dolog ("sdl_open: sigfillset failed: %s\n", strerror (errno)); + return -1; } err = pthread_sigmask (SIG_BLOCK, &new, &old); if (err) {