summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 5aa6a6b..200d7dc 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -79,14 +79,16 @@ print_port(SLV2Plugin p, uint32_t index)
}
SLV2Values properties = slv2_port_get_properties(p, port);
- printf("\t\tProperties: ");
+ if (slv2_values_size(properties) > 0)
+ printf("\t\tProperties: ");
for (unsigned i=0; i < slv2_values_size(properties); ++i) {
if (i > 0) {
printf("\n\t\t ");
}
printf("%s\n", slv2_value_as_uri(slv2_values_get_at(properties, i)));
}
- printf("\n");
+ if (slv2_values_size(properties) > 0)
+ printf("\n");
slv2_values_free(properties);
}