summaryrefslogtreecommitdiff
path: root/src/detect-virt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect-virt.c')
-rw-r--r--src/detect-virt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/detect-virt.c b/src/detect-virt.c
index 57f0176668..324f182c7e 100644
--- a/src/detect-virt.c
+++ b/src/detect-virt.c
@@ -34,7 +34,8 @@ int main(int argc, char *argv[]) {
* to detect whether we are being run in a virtualized
* environment or not */
- if ((r = detect_virtualization(&id)) < 0) {
+ r = detect_virtualization(&id);
+ if (r < 0) {
log_error("Failed to check for virtualization: %s", strerror(-r));
return EXIT_FAILURE;
}