summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/libcgrouptest01.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c
index 31addfb..a09a389 100644
--- a/tests/libcgrouptest01.c
+++ b/tests/libcgrouptest01.c
@@ -1321,8 +1321,8 @@ void test_cgroup_compare_cgroup(int ctl1, int ctl2, int i)
void test_cgroup_get_cgroup(int ctl1, int ctl2, int i)
{
- struct cgroup *cgroup_filled, *cgroup_a, *cgroup_b;
- struct cgroup_controller *controller;
+ struct cgroup *cgroup_filled = NULL, *cgroup_a = NULL, *cgroup_b = NULL;
+ struct cgroup_controller *controller = NULL;
char controller_name[FILENAME_MAX], control_file[FILENAME_MAX];
int ret;