On Thu, 27 Feb 2020 00:43:47 -0800 Lucas De Marchi wrote: > See documentation above this function. This breaks the case in which > the supplied array is empty, > i.e. a single NULL element. I've review this code and disagree with you. It doesn't break single NULL element vector. In this case config_paths is not NULL and, so no version-dependent configuation will be created. Single NULL will be passed as is, like any other custom configuration. if (config_paths == NULL) { /*creating version-dependent configuration */ err = kmod_config_new(ctx, &ctx->config, (const char * const*) tmp_config_paths); /* free resources */ } else err = kmod_config_new(ctx, &ctx->config, config_paths);