From f8d7c1742de50e4958ee38f18f015979cd469958 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Sun, 2 Apr 2017 05:58:23 +0300 Subject: [PATCH] vboxwrapper: Fix double check of the same flag. From PVS Studio: V501: 'There are identical sub-expressions 'enable_isocontextualization' to the left and to the right of the '&&' operator.' https://www.viva64.com/en/w/V501/print/ Signed-off-by: Vitalii Koshura --- samples/vboxwrapper/vbox_vboxmanage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/vboxwrapper/vbox_vboxmanage.cpp b/samples/vboxwrapper/vbox_vboxmanage.cpp index 52a2ab443e..fc82166f09 100644 --- a/samples/vboxwrapper/vbox_vboxmanage.cpp +++ b/samples/vboxwrapper/vbox_vboxmanage.cpp @@ -793,7 +793,7 @@ int VBOX_VM::deregister_stale_vm() { // In use by VMs: test2 (UUID: 000ab2be-1254-4c6a-9fdc-1536a478f601) // Location: C:\Users\romw\VirtualBox VMs\test2\test2.vdi // - if (enable_isocontextualization && enable_isocontextualization) { + if (enable_isocontextualization) { command = "showhdinfo \"" + virtual_machine_slot_directory + "/" + cache_disk_filename + "\" "; retval = vbm_popen(command, output, "get HDD info"); if (retval) return retval;