diff options
author | ache <ache@FreeBSD.org> | 1996-09-03 19:07:36 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-09-03 19:07:36 +0800 |
commit | 4116322bc2b5eec2424d71cdac921f0998624681 (patch) | |
tree | 2faf0f8a9c4330f08007c44540581c3d56fc9625 /x11 | |
parent | a2196a1bb5e6baadb2f4174d7c487c6b927c67d9 (diff) | |
download | freebsd-ports-gnome-4116322bc2b5eec2424d71cdac921f0998624681.tar.gz freebsd-ports-gnome-4116322bc2b5eec2424d71cdac921f0998624681.tar.zst freebsd-ports-gnome-4116322bc2b5eec2424d71cdac921f0998624681.zip |
better fix for fclose(NULL)
Diffstat (limited to 'x11')
-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"); |