diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-09-03 11:07:36 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-09-03 11:07:36 +0000 |
commit | 501d2949b4b8fd47abd207c16d7258b6da675f05 (patch) | |
tree | ab442806fe8a16066f59f630df378ba7150498fd /x11/xfedor | |
parent | 6a449eece92c975553786c6bde5fda30235c1a6a (diff) |
better fix for fclose(NULL)
Notes
Notes:
svn path=/head/; revision=3737
Diffstat (limited to 'x11/xfedor')
-rw-r--r-- | x11/xfedor/files/patch-ae | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/x11/xfedor/files/patch-ae b/x11/xfedor/files/patch-ae index 08100cd93f76..214fa2003faf 100644 --- a/x11/xfedor/files/patch-ae +++ b/x11/xfedor/files/patch-ae @@ -1,5 +1,5 @@ -*** filer.c.bak Tue Sep 3 02:38:19 1996 ---- filer.c Tue Sep 3 02:37:19 1996 +*** filer.c.orig Thu May 26 21:59:10 1994 +--- filer.c Tue Sep 3 15:01:15 1996 *************** *** 85,91 **** { @@ -26,12 +26,14 @@ return -1 ; } ---- 187,194 ---- +--- 187,196 ---- fprintf(stderr,"\n"); fprintf(stderr, msg, p1, p2, p3, p4); fprintf(stderr,"\n"); -! if (pF != NULL) +! if (pF != NULL) { ! fclose(pF); +! pF = NULL; +! } return -1 ; } @@ -44,7 +46,7 @@ getline(linebuf); if ((sscanf(linebuf, "STARTFONT %s", namebuf) != 1) || ---- 301,307 ---- +--- 303,309 ---- if (!Extension(filename,".bdf")) strcat(filename,".bdf"); |