summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-10-09 16:36:45 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-10-09 16:36:45 +0200
commite5396fed3f33cb80699561b55090dc3ba7c95de8 (patch)
tree30a4ab8faec87ec5741cb81383c57dedbe7a1396
parentb011116d1829bde044a638cbabfb070a7e0e8fa7 (diff)
test_virtualization: do not try to compare id in !virt context
-rw-r--r--src/condition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/condition.c b/src/condition.c
index e978656772..07624c841d 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) {