[lxc-devel] [PATCH 2/2] coverity 1097616: don't deref NULL when subsystem doesn't have a '.'

Dwight Engen dwight.engen at oracle.com
Tue Oct 29 20:46:21 UTC 2013


Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
 src/lxc/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
index 6aa4495..01ed040 100644
--- a/src/lxc/cgroup.c
+++ b/src/lxc/cgroup.c
@@ -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;
 }
-- 
1.8.3.1





More information about the lxc-devel mailing list