From 8dc000e3130aa443cbc4c8e9a660a01a76587639 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sat, 1 Sep 2007 09:42:54 +0000 Subject: [PATCH] Set term_->textarea_data = NULL when taking the pointer in textarea_edit --- src/viewer/text/textarea.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewer/text/textarea.c b/src/viewer/text/textarea.c index c564baa27..725251de4 100644 --- a/src/viewer/text/textarea.c +++ b/src/viewer/text/textarea.c @@ -657,6 +657,7 @@ textarea_edit(int op, struct terminal *term_, struct form_state *fs_, struct string file; td = term_->textarea_data; + term_->textarea_data = NULL; assert(td); if (!td->fs || !init_string(&file)