diff options
author | Florian Walpen <dev@submerge.ch> | 2022-01-22 23:19:38 +0100 |
---|---|---|
committer | Filipe Coelho <falktx@falktx.com> | 2022-04-07 15:20:45 +0100 |
commit | 4c55ca8be07a3af5e053a00aa550b1a2fe73c81e (patch) | |
tree | c56eab5df61f3059420f5cd54587137c09c1989a | |
parent | 84a21a8cb9afe8008efdc0e76f60df52d26fe44c (diff) | |
download | jack2-4c55ca8be07a3af5e053a00aa550b1a2fe73c81e.tar.gz |
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.
-rw-r--r-- | common/JackAPI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/JackAPI.cpp b/common/JackAPI.cpp index 99661e63..03285ba9 100644 --- a/common/JackAPI.cpp +++ b/common/JackAPI.cpp @@ -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"); return -1; } else { - return manager->GetPort(mydst)->Tie(mysrc); + return (manager ? manager->GetPort(mydst)->Tie(mysrc) : -1); } } |