Don't loop back on resume file read failure...
authorEric S. Raymond <esr@thyrsus.com>
Tue, 21 Mar 2023 18:24:42 +0000 (14:24 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 23 Mar 2023 15:28:53 +0000 (11:28 -0400)
...it's inconvenient for testing.

misc.c

diff --git a/misc.c b/misc.c
index 0725ab5bd86efdc1a8dc1180dd38ac9f5d7bc4f3..e717b3fd98fca90de3778301f5ffe52f6f9ee3a6 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -997,7 +997,7 @@ L20:        printf("\nFile name: ");
        if (NAME[strlen(NAME)-1] == '\n')
            NAME[strlen(NAME)-1] = '\0';
        F=fopen(NAME,(IN ? READ_MODE : WRITE_MODE));
-       if(F == NULL) {printf("Can't open file, try again.\n"); goto L20;}
+       if(F == NULL) {printf("Can't open file, try again.\n"); /* goto L20; */}
        return;
 
 L30:   if(IN)IGNORE(fread(ARR,sizeof(long),250,F));