summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-14 12:38:21 -0500
committerGitHub <noreply@github.com>2016-09-14 12:38:21 -0500
commit8f4a897dfbdc24195aad6c31e9714737210beeae (patch)
tree08b40c077d68e33ca6e4bc0fc973c374f3ea3ebe
parent7695d4e287234056252cc39cc2d3fa697a6fd0a6 (diff)
parentb001d8e9995c35c09d1a5636c631c473b1a602f2 (diff)
downloadjack1-8f4a897dfbdc24195aad6c31e9714737210beeae.tar.gz
Merge pull request #49 from Uladox/master
Moves VALGRIND_MEMSET above USE_CAPABILITIES ifdef
-rw-r--r--libjack/client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libjack/client.c b/libjack/client.c
index 7724868..c99d186 100644
--- a/libjack/client.c
+++ b/libjack/client.c
@@ -2395,6 +2395,7 @@ jack_activate (jack_client_t *client)
{
jack_request_t req;
+ VALGRIND_MEMSET (&req, 0, sizeof(req));
if (client->control->type == ClientInternal ||
client->control->type == ClientDriver) {
@@ -2414,8 +2415,6 @@ jack_activate (jack_client_t *client)
before trying to start the realtime thread
*/
- VALGRIND_MEMSET (&req, 0, sizeof(req));
-
req.type = SetClientCapabilities;
req.x.client_id = client->control->id;
req.x.cap_pid = client->control->pid;