Skip to content
Snippets Groups Projects
Commit 4c844ede authored by Roman Azarenko's avatar Roman Azarenko
Browse files

Merge commit '2f953ea7' into cjndm-6.5

parents f83e1018 2f953ea7
Branches
No related tags found
No related merge requests found
Checking pipeline status
...@@ -257,6 +257,11 @@ void populate_lxc_environment(void) ...@@ -257,6 +257,11 @@ void populate_lxc_environment(void)
int i, lxc_nbr; int i, lxc_nbr;
lxc_nbr = list_all_containers(lxcpath, NULL, &clist); lxc_nbr = list_all_containers(lxcpath, NULL, &clist);
if (clist == NULL || lxc_nbr == 0) {
PRINT_INFO("Empty container list, return");
return;
}
for (i = 0; i < lxc_nbr && i < (MAX_ENV - LXC_START_INDEX); i++) { for (i = 0; i < lxc_nbr && i < (MAX_ENV - LXC_START_INDEX); i++) {
struct lxc_container *ct = clist[i]; struct lxc_container *ct = clist[i];
bool ct_running = ct->is_running(ct); bool ct_running = ct->is_running(ct);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment