From 6a37360355f253c2e6719d40f932534ed2607658 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 13 Aug 2020 09:42:24 -0600 Subject: * Crash while resizing the screen when viewing a calendar event. --- alpine/mailpart.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'alpine') diff --git a/alpine/mailpart.c b/alpine/mailpart.c index 5e1cac9a..f6b8cdba 100644 --- a/alpine/mailpart.c +++ b/alpine/mailpart.c @@ -3108,14 +3108,7 @@ display_vevent_summary(long int msgno, ATTACH_S *a, int flags, int depth) return; } - if((out_store = so_get(CharStar, NULL, EDIT_ACCESS)) == NULL){ - q_status_message(SM_ORDER | SM_DING, 3, 3, - _("Error allocating space to write Calendar")); - return; - } - gf_set_so_readc(&gc, in_store); - gf_set_so_writec(&pc, out_store); for(vesy = vsummary, k = 0; vesy; vesy = vesy->next, k++){ if(depth >= 0 && k != depth) @@ -3253,6 +3246,13 @@ display_vevent_summary(long int msgno, ATTACH_S *a, int flags, int depth) do{ so_seek(in_store, 0L, 0); + if((out_store = so_get(CharStar, NULL, EDIT_ACCESS)) == NULL){ + q_status_message(SM_ORDER | SM_DING, 3, 3, + _("Error allocating space to write Calendar")); + return; + } + + gf_set_so_writec(&pc, out_store); init_handles(&handles); gf_filter_init(); -- cgit v1.2.3-54-g00ecf