From: Kay Sievers Date: Sun, 9 Oct 2011 14:36:45 +0000 (+0200) Subject: test_virtualization: do not try to compare id in !virt context X-Git-Tag: v37~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5396fed3f33cb80699561b55090dc3ba7c95de8;p=systemd test_virtualization: do not try to compare id in !virt context --- diff --git a/src/condition.c b/src/condition.c index e9786567..07624c84 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) {