[virt-tools-list] [PATCH virt-viewer] virt-viewer: Fix comparison in domain selection

Pavel Grunt pgrunt at redhat.com
Wed Mar 15 17:12:30 UTC 2017


Related: rhbz#1399077
---
 src/virt-viewer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 65c0546..b50db16 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -110,7 +110,7 @@ opt_domain_selection_cb(const gchar *option_name,
         return FALSE;
     }
 
-    for (i = DOMAIN_SELECTION_ID; i <= G_N_ELEMENTS(domain_selection_to_opt); i++) {
+    for (i = DOMAIN_SELECTION_ID; i < G_N_ELEMENTS(domain_selection_to_opt); i++) {
         if (g_strcmp0(option_name, domain_selection_to_opt[i]) == 0) {
             domain_selection_type = i;
             return TRUE;
-- 
2.12.0




More information about the virt-tools-list mailing list