summaryrefslogtreecommitdiff
path: root/audio/jack/patches/patch-ai
blob: 34364c1b0175464ac99d335593d6e1213c4dd5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ai,v 1.3 2008/11/16 11:55:19 bjs Exp $

--- libjack/client.c.orig	2008-11-11 17:36:29.000000000 -0500
+++ libjack/client.c
@@ -969,10 +969,7 @@ jack_client_open_aux (const char *client
 	}
 
 	/* parse variable arguments */
-	if (ap)
         jack_varargs_parse(options, ap, &va);
-    else
-        jack_varargs_init(&va);
 
 	/* External clients need to know where the tmpdir used for
 	   communication with the server lives
@@ -1114,10 +1111,12 @@ jack_client_t* jack_client_open(const ch
 jack_client_t *
 jack_client_new (const char *client_name)
 {
+	va_list ap;
+
 	jack_options_t options = JackUseExactName;
 	if (getenv("JACK_START_SERVER") == NULL)
 		options |= JackNoStartServer;
-	return jack_client_open_aux (client_name, options, NULL, NULL);
+	return jack_client_open_aux (client_name, options, NULL, ap);
 }
 
 char *