Browse Source

test malloc return value in jack_get_ports()

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3750 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.117.0
paul 15 years ago
parent
commit
a89f884391
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libjack/client.c

+ 4
- 0
libjack/client.c View File

@@ -2443,6 +2443,10 @@ jack_get_ports (jack_client_t *client,
matching_ports = (const char **)
malloc (sizeof (char *) * engine->port_max);

if (matching_ports == NULL) {
return NULL;
}

for (i = 0; i < engine->port_max; i++) {
matching = 1;



Loading…
Cancel
Save