chiark / gitweb /
fix scan-build issues
[elogind.git] / src / test / test-cgroup-mask.c
index 0f145d6bc44ece742c7b4ab63fbf1afa07996508..99c8ceea7634f5ae865990c9f9ec5ce759922632 100644 (file)
@@ -37,9 +37,10 @@ static int test_cgroup_mask(void) {
         FILE *serial = NULL;
         FDSet *fdset = NULL;
         int r;
+        const char *dir = TEST_DIR;
 
         /* Prepare the manager. */
-        assert_se(set_unit_path(TEST_DIR) >= 0);
+        assert_se(set_unit_path(dir) >= 0);
         r = manager_new(SYSTEMD_USER, &m);
         if (r == -EPERM || r == -EACCES) {
                 puts("manager_new: Permission denied. Skipping test.");