afb-api-so: fix a bug in error detection
[src/app-framework-binder.git] / src / main.c
index 77392f8..84bdc61 100644 (file)
@@ -351,7 +351,7 @@ static char *instanciate_string(char *arg, const char *port, const char *token)
                switch(*++it) {
                case 'p': wr = stpcpy(wr, port); break;
                case 't': wr = stpcpy(wr, token); break;
-               default: *wr++ = SUBST_CHAR;
+               default: *wr++ = SUBST_CHAR; /*@fallthrough@*/
                case SUBST_CHAR: *wr++ = *it;
                }
                arg = ++it;
@@ -592,7 +592,7 @@ static void start(int signum)
        afb_debug("start-load");
        apiset_start_list(config->dbus_clients, afb_api_dbus_add_client, "the afb-dbus client");
        apiset_start_list(config->ws_clients, afb_api_ws_add_client, "the afb-websocket client");
-       apiset_start_list(config->ldpaths, afb_api_so_add_pathset, "the binding path set");
+       apiset_start_list(config->ldpaths, afb_api_so_add_pathset_fails, "the binding path set");
        apiset_start_list(config->so_bindings, afb_api_so_add_binding, "the binding");
 
        apiset_start_list(config->dbus_servers, afb_api_dbus_add_server, "the afb-dbus service");