[evolution] action_event_popup_rsvp_response_cb: Always initialize local variable



commit 49f7d75ba465fbf3afc517b2ca555bd83920f8ee
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 10 15:11:47 2021 +0100

    action_event_popup_rsvp_response_cb: Always initialize local variable
    
    Even using it uninitialized would also mean to see a runtime warning,
    better to initialize it, at least to avoid compiler warning and unpredictable
    behavior in the bad case.

 src/modules/calendar/e-cal-shell-view-actions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/modules/calendar/e-cal-shell-view-actions.c b/src/modules/calendar/e-cal-shell-view-actions.c
index 6ef5225d83..4e7a0b94ba 100644
--- a/src/modules/calendar/e-cal-shell-view-actions.c
+++ b/src/modules/calendar/e-cal-shell-view-actions.c
@@ -794,7 +794,7 @@ action_event_popup_rsvp_response_cb (GtkAction *action,
        ECalClient *client;
        ECalComponent *comp;
        ECalModel *model;
-       ICalParameterPartstat partstat;
+       ICalParameterPartstat partstat = I_CAL_PARTSTAT_NONE;
        ICalComponent *clone;
        GList *selected;
        const gchar *action_name;


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