From e5396fed3f33cb80699561b55090dc3ba7c95de8 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 9 Oct 2011 16:36:45 +0200 Subject: [PATCH] test_virtualization: do not try to compare id in !virt context --- src/condition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/condition.c b/src/condition.c index e9786567726..07624c841da 100644 --- a/src/condition.c +++ b/src/condition.c @@ -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) {