]> err.no Git - systemd/commitdiff
test_virtualization: do not try to compare id in !virt context
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 9 Oct 2011 14:36:45 +0000 (16:36 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 9 Oct 2011 14:36:45 +0000 (16:36 +0200)
src/condition.c

index e9786567726f6437698e7e554472d3ba3fd81d87..07624c841daf2b20f38bb7f3e431ae568d7b57c4 100644 (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) {