[evolution/gnome-3-38] ecep_general_pick_organizer_for_email_address: The 'ii' can be used uninitialized



commit 979fb1edf7940e6335df671cbeb770b5e8556143
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 20 10:17:36 2020 +0100

    ecep_general_pick_organizer_for_email_address: The 'ii' can be used uninitialized
    
    Fixes a possible problem that the 'ii' variable can be used uninitialized here.
    
    Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1140

 src/calendar/gui/e-comp-editor-page-general.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-page-general.c b/src/calendar/gui/e-comp-editor-page-general.c
index e7be08a88e..780b8e2ce3 100644
--- a/src/calendar/gui/e-comp-editor-page-general.c
+++ b/src/calendar/gui/e-comp-editor-page-general.c
@@ -589,7 +589,7 @@ ecep_general_pick_organizer_for_email_address (ECompEditorPageGeneral *page_gene
        GtkTreeModel *model;
        GtkTreeIter iter;
        GtkComboBox *combo_box;
-       gint ii, entry_text_column;
+       gint ii = 0, entry_text_column;
 
        g_return_val_if_fail (E_IS_COMP_EDITOR_PAGE_GENERAL (page_general), FALSE);
 
@@ -612,8 +612,6 @@ ecep_general_pick_organizer_for_email_address (ECompEditorPageGeneral *page_gene
        entry_text_column = gtk_combo_box_get_entry_text_column (combo_box);
 
        if (gtk_tree_model_get_iter_first (model, &iter)) {
-               ii = 0;
-
                do {
                        gchar *value = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]