summaryrefslogtreecommitdiff
path: root/src/detect-virt.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-12 15:10:28 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-12 15:10:28 +0200
commitac0d6edfac140a684533925adb897c35736308f2 (patch)
tree92ca96a01f9b1b1c0f7597fdcd7ee8c5fac7b277 /src/detect-virt.c
parent984bf9312e3f2c7cc165b54546270ce7804d5a4d (diff)
detect-virt: print 'none' if no virtualization is detected
Diffstat (limited to 'src/detect-virt.c')
-rw-r--r--src/detect-virt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/detect-virt.c b/src/detect-virt.c
index bdcd27df6e..a83fb3ced5 100644
--- a/src/detect-virt.c
+++ b/src/detect-virt.c
@@ -164,8 +164,8 @@ int main(int argc, char *argv[]) {
break;
}
- if (id && !arg_quiet)
- puts(id);
+ if (!arg_quiet)
+ puts(id ? id : "none");
return retval;
}