]> git.wh0rd.org Git - nano.git/commitdiff
Make functions return themselves when do_browser() aborts
authorChris Allegretta <chrisa@asty.org>
Thu, 4 Jan 2001 05:08:37 +0000 (05:08 +0000)
committerChris Allegretta <chrisa@asty.org>
Thu, 4 Jan 2001 05:08:37 +0000 (05:08 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@441 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c

diff --git a/files.c b/files.c
index 372adde03bf993f410ea7af0cdbe4333ea31e9b0..fcab7f884029bcaae9637f61eb3b8e49182a448d 100644 (file)
--- 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