aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-24 23:04:12 +0100
committercbdev <cb@cbcdn.com>2020-03-24 23:04:12 +0100
commit18db3856a3a3e81f3e2050e3f137e6e15103f9a4 (patch)
treee8a03533e2f0c03880f9a1b91992fc9053552f74 /backends/lua.c
parentaa02ccf3abf183207b24fcbb9460cbd904a698e2 (diff)
downloadmidimonster-18db3856a3a3e81f3e2050e3f137e6e15103f9a4.tar.gz
midimonster-18db3856a3a3e81f3e2050e3f137e6e15103f9a4.tar.bz2
midimonster-18db3856a3a3e81f3e2050e3f137e6e15103f9a4.zip
Simplify backend code according to new guarantees
Diffstat (limited to 'backends/lua.c')
-rw-r--r--backends/lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/lua.c b/backends/lua.c
index 7f80cc7..968193e 100644
--- a/backends/lua.c
+++ b/backends/lua.c
@@ -471,7 +471,8 @@ static channel* lua_channel(instance* inst, char* spec, uint8_t flags){
return NULL;
}
- data->channel[u].in = data->channel[u].out = 0.0;
+ //initialize new channel
+ memset(data->channel + u, 0, sizeof(lua_channel_data));
data->channel[u].name = strdup(spec);
if(!data->channel[u].name){
LOG("Failed to allocate memory");