commit e7df7f0aa416124503c379b9c03cb1a6b8f016a0
parent 6d70a2e305da73b5977974a368edb1e78359135e
Author: sin <sin@2f30.org>
Date: Fri, 26 Dec 2014 15:06:03 +0000
Style fix
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mp3.c b/mp3.c
@@ -12,10 +12,14 @@ static mpg123_handle *hdl;
static int
mp3init(void)
{
- if (mpg123_init() != MPG123_OK) {
+ int r;
+
+ r = mpg123_init();
+ if (r != MPG123_OK) {
warnx("mpg123_init: failed");
return -1;
}
+
hdl = mpg123_new(NULL, NULL);
if (!hdl) {
warnx("mpg123_new: failed");