aboutsummaryrefslogtreecommitdiff
path: root/audio/cmus
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/Makefile2
-rw-r--r--audio/cmus/files/patch-ao.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/audio/cmus/Makefile b/audio/cmus/Makefile
index df7666e7a8d0..436634e1ee80 100644
--- a/audio/cmus/Makefile
+++ b/audio/cmus/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cmus
PORTVERSION= 2.3.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/audio/cmus/files/patch-ao.c b/audio/cmus/files/patch-ao.c
new file mode 100644
index 000000000000..74c666053891
--- /dev/null
+++ b/audio/cmus/files/patch-ao.c
@@ -0,0 +1,10 @@
+--- ao.c.orig 2010-06-05 20:09:57.000000000 +0200
++++ ao.c 2010-06-05 20:10:36.000000000 +0200
+@@ -71,6 +71,7 @@ static int op_ao_open(sample_format_t sf
+ return -OP_ERROR_ERRNO;
+ }
+
++ memset(&format, 0, sizeof(format));
+ format.bits = sf_get_bits(sf);
+ format.rate = sf_get_rate(sf);
+ format.channels = sf_get_channels(sf);