summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-08-13 09:42:24 -0600
committerEduardo Chappa <chappa@washington.edu>2020-08-13 09:42:24 -0600
commit6a37360355f253c2e6719d40f932534ed2607658 (patch)
tree7198317f4bede5d9c753e30f323418c1a33c0bf4 /alpine
parentff2e56dffa4a6d16bc7bcc540bb578877753a81a (diff)
downloadalpine-6a37360355f253c2e6719d40f932534ed2607658.tar.xz
* Crash while resizing the screen when viewing a calendar event.
Diffstat (limited to 'alpine')
-rw-r--r--alpine/mailpart.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/alpine/mailpart.c b/alpine/mailpart.c
index 5e1cac9..f6b8cdb 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();