aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/samples/ave.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/samples/ave.c')
-rw-r--r--bindings/samples/ave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings/samples/ave.c b/bindings/samples/ave.c
index 6c3bf92c..a4b4144d 100644
--- a/bindings/samples/ave.c
+++ b/bindings/samples/ave.c
@@ -484,6 +484,8 @@ int afbBindingVdyn(afb_dynapi *dynapi)
for (i = 0; apis[i] ; i++) {
rc = afb_dynapi_new_api(dynapi, apis[i], NULL, build_api, (void*)apis[i]);
+ if (rc < 0)
+ AFB_DYNAPI_ERROR(dynapi, "can't create API %s", apis[i]);
}
return 0;
}