chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detect-virt: Fix Xen domU discovery
[elogind.git]
/
src
/
shared
/
virt.c
diff --git
a/src/shared/virt.c
b/src/shared/virt.c
index 774915f4be7ddf863c9be0fb9418b67bb8583b45..20a8d7c5bfc4287bdb6bbea0da1aac0a7bf4734a 100644
(file)
--- a/
src/shared/virt.c
+++ b/
src/shared/virt.c
@@
-173,7
+173,7
@@
int detect_vm(const char **id) {
if (streq(cap, "control_d"))
break;
if (streq(cap, "control_d"))
break;
- if (!
i
) {
+ if (!
cap
) {
_id = "xen";
r = 1;
}
_id = "xen";
r = 1;
}