[virt-tools-list] [PATCH virt-viewer] virt-viewer: Fix comparison in domain selection
Eduardo Lima (Etrunko)
etrunko at redhat.com
Wed Mar 15 17:21:54 UTC 2017
https://twitter.com/codinghorror/status/506010907021828096
Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
On 15/03/17 14:12, Pavel Grunt wrote:
> 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;
>
--
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko at redhat.com
More information about the virt-tools-list
mailing list