mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
test_virtualization: do not try to compare id in !virt context
This commit is contained in:
parent
b011116d18
commit
e5396fed3f
@ -148,7 +148,7 @@ static bool test_virtualization(const char *parameter) {
|
||||
return true;
|
||||
|
||||
/* Finally compare id */
|
||||
return streq(parameter, id);
|
||||
return v > 0 && streq(parameter, id);
|
||||
}
|
||||
|
||||
static bool test_security(const char *parameter) {
|
||||
|
Loading…
Reference in New Issue
Block a user