diff options
author | falkTX <falktx@falktx.com> | 2020-06-17 19:34:26 +0100 |
---|---|---|
committer | falkTX <falktx@falktx.com> | 2020-06-17 19:36:36 +0100 |
commit | 70420f49919a6abddaf0f44b6d6474c09a674075 (patch) | |
tree | 20825e6c84404d42482cd685c2247b94ade6667e | |
parent | e26f98637ee4603b903599dc2e1862c2f373b864 (diff) | |
download | jack2-70420f49919a6abddaf0f44b6d6474c09a674075.tar.gz |
jack_property: Fix possible crash on "-l ..."
Signed-off-by: falkTX <falktx@falktx.com>
-rw-r--r-- | example-clients/property.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example-clients/property.c b/example-clients/property.c index dddd2edb..8302c4f1 100644 --- a/example-clients/property.c +++ b/example-clients/property.c @@ -258,7 +258,7 @@ int main (int argc, char* argv[]) /* list all properties for a given UUID */ jack_description_t description; - size_t cnt, n; + int cnt, n; if (get_subject (client, argv, &optind)) { return -1; @@ -289,9 +289,8 @@ int main (int argc, char* argv[]) /* list all properties */ jack_description_t* description; - int cnt; + int cnt, n; size_t p; - int n; char buf[JACK_UUID_STRING_SIZE]; if ((cnt = jack_get_all_properties (&description)) < 0) { |