Skip to content

Commit e4c6440

Browse files
authored
Merge pull request mod-audio#85 from moddevices/fix-hip2b-uinitialized-variables
Fix hip2b uinitialized variables
2 parents 50fffae + 3a6e7d4 commit e4c6440

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/src/hip2b/square.c b/src/hip2b/square.c
2+
index b3f065b..a17c42f 100644
3+
--- a/src/hip2b/square.c
4+
+++ b/src/hip2b/square.c
5+
@@ -217,6 +217,7 @@ LV2_Handle init_square(const LV2_Descriptor *descriptor,double sample_rate, cons
6+
plug->state = 0;
7+
plug->outstate = 0;
8+
plug->nextstate = 0;
9+
+ plug->pos = 0;
10+
plug->headway = HALF + 1;
11+
plug->skip = 1;
12+
13+
@@ -231,6 +232,7 @@ LV2_Handle init_square(const LV2_Descriptor *descriptor,double sample_rate, cons
14+
15+
plug->dcprevin = 0;
16+
plug->dcprevout = 0;
17+
+ plug->gain = 1;
18+
19+
return plug;
20+
}

0 commit comments

Comments
 (0)