diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-10-09 16:36:45 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-10-09 16:36:45 +0200 |
commit | e5396fed3f33cb80699561b55090dc3ba7c95de8 (patch) | |
tree | 30a4ab8faec87ec5741cb81383c57dedbe7a1396 /src/condition.c | |
parent | b011116d1829bde044a638cbabfb070a7e0e8fa7 (diff) |
test_virtualization: do not try to compare id in !virt context
Diffstat (limited to 'src/condition.c')
-rw-r--r-- | src/condition.c | 2 |
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) { |