From 70420f49919a6abddaf0f44b6d6474c09a674075 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 17 Jun 2020 19:34:26 +0100 Subject: [PATCH] jack_property: Fix possible crash on "-l ..." Signed-off-by: falkTX --- example-clients/property.c | 5 ++--- 1 file 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) { -- 2.11.4.GIT