From fe4158410211609440c8a5ee6a194cfb50a5929c Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 4 Jan 2001 05:08:37 +0000 Subject: [PATCH] Make functions return themselves when do_browser() aborts git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@441 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- files.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files.c b/files.c index 372adde0..fcab7f88 100644 --- a/files.c +++ b/files.c @@ -279,6 +279,10 @@ int do_insertfile(void) free(realname); realname = tmp; } + else { + free(realname); + return do_insertfile(); + } } #endif @@ -529,6 +533,8 @@ int do_writeout(int exiting) free(answer); answer = tmp; } + else + return do_writeout(exiting); } #endif -- 2.39.5