[Jack-Devel] jack_connect with empty string

Tobias Hoffmann lfile-list at thax.hardliners.org
Wed May 20 13:01:19 CEST 2015


using jack 0.124.1 I happened to do this:
   const char *connect_to="";

and expected jack_connect to return an error. To my surprise it 
succeeded and connected "system:capture_1" to myport.

Is this "normal" and/or documented?

AFAICT, the technical reason is
   jack_port_shared_t::alias2="\0"  (resp. alias1)
and jack_get_port_by_name() returns the first such one...


More information about the Jackaudio mailing list