Unverified Commit 370a2284 by Christian Brauner Committed by GitHub

Merge pull request #3347 from cyphar/cgfsng-uninitialised

cgroups: fix "uninitialized transient_len" warning
parents 5f2ed0c0 34683042
......@@ -1388,7 +1388,7 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops,
if (ret)
return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path);
if (handler->transient_pid < 0)
if (handler->transient_pid <= 0)
return true;
ret = lxc_writeat(h->cgfd_mon, "cgroup.procs", transient, transient_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment