Commit 86b3688b by Dwight Engen Committed by Stéphane Graber

coverity 1097616: don't deref NULL when subsystem doesn't have a '.'

parent 1f845c39
...@@ -1242,7 +1242,7 @@ char *lxc_cgroup_path_get(const char *filename, const char *name, ...@@ -1242,7 +1242,7 @@ char *lxc_cgroup_path_get(const char *filename, const char *name,
if (!group) if (!group)
return NULL; return NULL;
path = lxc_cgroup_find_abs_path(subsystem, group, true, *p ? longer_file : NULL); path = lxc_cgroup_find_abs_path(subsystem, group, true, p ? longer_file : NULL);
free(group); free(group);
return path; return path;
} }
......
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