Commit 36d6d534 authored by sletz's avatar sletz
Browse files

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1841 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 9e898eb8
......@@ -694,7 +694,6 @@ const char** JackGraphManager::GetConnections(jack_port_id_t port_index)
// Client
const char** JackGraphManager::GetPortsAux(const char* port_name_pattern, const char* type_name_pattern, unsigned long flags)
{
const char** matching_ports;
unsigned long match_cnt = 0;
regex_t port_regex;
regex_t type_regex;
......@@ -707,7 +706,7 @@ const char** JackGraphManager::GetPortsAux(const char* port_name_pattern, const
regcomp(&type_regex, type_name_pattern, REG_EXTENDED | REG_NOSUB);
}
matching_ports = (const char**)malloc(sizeof(char*) * PORT_NUM);
const char** matching_ports = (const char**)malloc(sizeof(char*) * PORT_NUM);
for (int i = 0; i < PORT_NUM; i++) {
matching = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment