diff options
Diffstat (limited to 'my-evolution/e-summary.c')
-rw-r--r-- | my-evolution/e-summary.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c index 1af0b1edac..833073c94c 100644 --- a/my-evolution/e-summary.c +++ b/my-evolution/e-summary.c @@ -589,6 +589,10 @@ e_summary_count_connections (ESummary *summary) GList *p; int count = 0; + if (summary == NULL) { + return 0; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; @@ -605,6 +609,10 @@ e_summary_add_connections (ESummary *summary) GList *p; GList *connections = NULL; + if (summary == NULL) { + return NULL; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; GList *r; @@ -626,6 +634,10 @@ e_summary_set_online (ESummary *summary, { GList *p; + if (summary == NULL) { + return; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; |