When porting to the new list type we added an accidental ! when checking
whether the list is empty.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
char filename[PATH_MAX] = {0};
struct lxc_sysctl *sysctl, *nsysctl;
- if (!list_empty(&conf->sysctls))
+ if (list_empty(&conf->sysctls))
return 0;
list_for_each_entry_safe(sysctl, nsysctl, &conf->sysctls, head) {
char filename[PATH_MAX] = {0};
struct lxc_proc *proc;
- if (!list_empty(&conf->procs))
+ if (list_empty(&conf->procs))
return 0;
list_for_each_entry(proc, &conf->procs, head) {