Commit 915614c7 by Serge Hallyn

coverity: don't deref null c

parent cbaed76d
......@@ -275,7 +275,8 @@ static int print_info(const char *name, const char *lxcpath)
c = lxc_container_new(name, lxcpath);
if (!c) {
fprintf(stderr, "Failure to retrieve information on %s\n", c->name);
fprintf(stderr, "Failure to retrieve information on %s:%s\n", lxcpath ? lxcpath : "null",
name ? name : "null");
return -1;
}
......
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