diff options
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c index 617280e..d5e744a 100644 --- a/src/instance.c +++ b/src/instance.c @@ -171,7 +171,9 @@ suil_instance_new(SuilHost* host, const LV2UI_Descriptor* descriptor = NULL; for (uint32_t i = 0; true; ++i) { const LV2UI_Descriptor* ld = df(i); - if (!strcmp(ld->URI, ui_uri)) { + if (!ld) { + break; + } else if (!strcmp(ld->URI, ui_uri)) { descriptor = ld; break; } |