chiark / gitweb /
core/cgroup: fix embarrassing typo
[elogind.git] / src / core / cgroup.c
index 64d00b16b6bb75394a261511433f1be858aca032..10fdcc9984e39f4a5171c77d68c750d7b7d3d490 100644 (file)
@@ -380,7 +380,7 @@ void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const cha
                 }
         }
 
-        if ((mask & CGROUP_MEMORY) & !is_root) {
+        if ((mask & CGROUP_MEMORY) && !is_root) {
                 if (c->memory_limit != (uint64_t) -1) {
                         char buf[DECIMAL_STR_MAX(uint64_t) + 1];