rem: if (n + 1 == item) return(string(ports[n]));
add: if (n + 1 == item) return string(ports[n]);
context: static std::string eca_get_jack_port_item(const char **ports, int item){  int n = 0;  while(ports != 0 && ports[n] != 0) {    if (n + 1 == item) return(string(ports[n]));    n++;  }  return string("");}