Commit 08d931d3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

config: generates modules list if none found

Zero modules (for a capability) is not an error per se. This generates a
valid choice list even if there are no matching modules.
parent bda7da77
......@@ -357,10 +357,9 @@ static ssize_t config_ListModules (const char *cap, char ***restrict values,
module_t **list;
ssize_t n = module_list_cap (&list, cap);
if (n <= 0)
if (unlikely(n < 0))
*values = *texts = NULL;
module_list_free (list);
return n;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment