X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.c;h=9b43c21d08456698770805c8bf1701f60b2730f2;hp=b337778d0ef96524447b4a3231588b1371a734b4;hb=ec195f55fb279b0eb6a38bc8ea15ff1afbdcae80;hpb=ec43fbc68c5518666b44b262aab7a956e8273013 diff --git a/src/util.c b/src/util.c index b337778d0..9b43c21d0 100644 --- a/src/util.c +++ b/src/util.c @@ -4011,7 +4011,7 @@ int detect_vm(const char **id) { : "0" (eax) ); - hypervisor = !!(ecx & ecx & 0x80000000U); + hypervisor = !!(ecx & 0x80000000U); if (hypervisor) {