summaryrefslogtreecommitdiff
path: root/media-sound/freebirth/files/freebirth-0.3.2-segfault.patch
blob: 2a3a40711f1c6c0c6b5818cb3b1ad2fbab980498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://bugs.gentoo.org/show_bug.cgi?id=320123

Index: freebirth-0.3.2/oscillator.c
===================================================================
--- freebirth-0.3.2.orig/oscillator.c
+++ freebirth-0.3.2/oscillator.c
@@ -237,8 +237,8 @@ event *event_freq_change_new(int seq_han
 
 static sample_producer **get_children(osc *this)
 {
-  static sample_producer *no_kids[] = { NULL };
-  return no_kids;
+  static sample_producer no_kids[] = {{ NULL }};
+  return &no_kids;
 }
 
 static char **get_header(osc *this)