aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-11-06 21:26:56 +0100
committercbdev <cb@cbcdn.com>2019-11-06 21:26:56 +0100
commit5a79158ec0195cacbc8f4661dff5b26363797447 (patch)
tree349515dfc214cebee69f29d064352e22df7a4a5b /backends
parent20eb48ce4ccffe88b22ecd6a93bc9e097e5aa498 (diff)
downloadmidimonster-5a79158ec0195cacbc8f4661dff5b26363797447.tar.gz
midimonster-5a79158ec0195cacbc8f4661dff5b26363797447.tar.bz2
midimonster-5a79158ec0195cacbc8f4661dff5b26363797447.zip
Fix Coverity CIDs 350438, 350437
Diffstat (limited to 'backends')
-rw-r--r--backends/jack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/jack.c b/backends/jack.c
index efcd8d5..48a6b68 100644
--- a/backends/jack.c
+++ b/backends/jack.c
@@ -550,13 +550,13 @@ static int mmjack_handle(size_t num, managed_fd* fds){
if(num){
for(u = 0; u < num; u++){
+ inst = (instance*) fds[u].impl;
+ data = (mmjack_instance_data*) inst->impl;
bytes = recv(fds[u].fd, recv_buf, sizeof(recv_buf), 0);
if(bytes < 0){
fprintf(stderr, "Failed to receive on feedback socket for instance %s\n", inst->name);
return 1;
}
- inst = (instance*) fds[u].impl;
- data = (mmjack_instance_data*) inst->impl;
for(p = 0; p < data->ports; p++){
if(data->port[p].input && data->port[p].mark){
@@ -672,14 +672,14 @@ static int mmjack_start(){
if(!data->port[p].port){
fprintf(stderr, "Failed to create jack port %s.%s\n", inst[u]->name, data->port[p].name);
- return 1;
+ goto bail;
}
}
//do the thing
if(jack_activate(data->client)){
fprintf(stderr, "Failed to activate jack client for instance %s\n", inst[u]->name);
- return 1;
+ goto bail;
}
}