Browse Source

fix jack_lsp crashing for 0 ports

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4068 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.120.1
torben 15 years ago
parent
commit
aa2bd69905
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tools/lsp.c

+ 1
- 1
tools/lsp.c View File

@@ -137,7 +137,7 @@ main (int argc, char *argv[])


ports = jack_get_ports (client, NULL, NULL, 0); ports = jack_get_ports (client, NULL, NULL, 0);


for (i = 0; ports[i]; ++i) {
for (i = 0; ports && ports[i]; ++i) {
// skip over any that don't match ALL of the strings presented at command line // skip over any that don't match ALL of the strings presented at command line
skip_port = 0; skip_port = 0;
for(k=optind; k < argc; k++){ for(k=optind; k < argc; k++){


Loading…
Cancel
Save