1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

test_virtualization: do not try to compare id in !virt context

This commit is contained in:
Kay Sievers 2011-10-09 16:36:45 +02:00
parent b011116d18
commit e5396fed3f

View File

@ -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) {