]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity 1097616: don't deref NULL when subsystem doesn't have a '.'
authorDwight Engen <dwight.engen@oracle.com>
Tue, 29 Oct 2013 20:46:21 +0000 (16:46 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 30 Oct 2013 13:52:55 +0000 (09:52 -0400)
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgroup.c

index 6aa4495127f3d4a5a1750093aac39593c219c6ad..01ed04092ff0309a199a9a2156717214afe6cf0c 100644 (file)
@@ -1242,7 +1242,7 @@ char *lxc_cgroup_path_get(const char *filename, const char *name,
        if (!group)
                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);
        return path;
 }