summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 263374c..7b3d594 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -34,6 +34,11 @@ print_port(SLV2Plugin p, uint32_t index, float* mins, float* maxes, float* defau
printf("\n\tPort %d:\n", index);
+ if (!port) {
+ printf("\t\tERROR: Illegal/nonexistent port\n");
+ return;
+ }
+
SLV2Values classes = slv2_port_get_classes(p, port);
printf("\t\tClasses:\n");