From bed5fb747ba1c891c95032c2f4d30f1710bbe1cc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 21 Mar 2023 14:24:42 -0400 Subject: [PATCH] Don't loop back on resume file read failure... ...it's inconvenient for testing. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.c b/misc.c index 0725ab5..e717b3f 100644 --- 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)); -- 2.31.1