summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Walpen <dev@submerge.ch>2022-01-22 23:19:38 +0100
committerFilipe Coelho <falktx@falktx.com>2022-04-07 15:20:45 +0100
commit4c55ca8be07a3af5e053a00aa550b1a2fe73c81e (patch)
treec56eab5df61f3059420f5cd54587137c09c1989a
parent84a21a8cb9afe8008efdc0e76f60df52d26fe44c (diff)
downloadjack2-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.cpp2
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);
}
}