From: Eric S. Raymond Date: Tue, 21 Mar 2023 18:24:42 +0000 (-0400) Subject: Don't loop back on resume file read failure... X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bed5fb747ba1c891c95032c2f4d30f1710bbe1cc;p=open-adventure.git Don't loop back on resume file read failure... ...it's inconvenient for testing. --- 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));