criu: silence static analysis

parent fb1f9a9d
...@@ -1027,7 +1027,12 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_ ...@@ -1027,7 +1027,12 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
* assign the return here to silence potential. * assign the return here to silence potential.
*/ */
ret = snprintf(title, sizeof(title), "[lxc monitor] %s %s", c->config_path, c->name); ret = snprintf(title, sizeof(title), "[lxc monitor] %s %s", c->config_path, c->name);
if (ret < 0 || (size_t)ret >= sizeof(title))
INFO("Setting truncated process name");
ret = setproctitle(title); ret = setproctitle(title);
if (ret < 0)
INFO("Failed to set process name");
ret = lxc_poll(c->name, handler); ret = lxc_poll(c->name, handler);
if (ret) if (ret)
......
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