Browse Source

Missing check for graph manager in JackAPI.

This seems to be the only place where the result of GetGraphManager() is
not checked for null, at least in JackAPI. Found by llvm scan-build.
pull/844/head
Florian Walpen 4 years ago
parent
commit
d12f4ed37b
No known key found for this signature in database GPG Key ID: E11C40B3BC8863BC
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/JackAPI.cpp

+ 1
- 1
common/JackAPI.cpp View File

@@ -510,7 +510,7 @@ LIB_EXPORT int jack_port_tie(jack_port_t* src, jack_port_t* dst)
jack_error("jack_port_tie called with ports not belonging to the same client"); jack_error("jack_port_tie called with ports not belonging to the same client");
return -1; return -1;
} else { } else {
return manager->GetPort(mydst)->Tie(mysrc);
return (manager ? manager->GetPort(mydst)->Tie(mysrc) : -1);
} }
} }




Loading…
Cancel
Save