diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-16 17:25:13 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-16 17:25:13 +0800 |
commit | 85ae8fdf6e1118df1dc9382c00f65013aa06c86b (patch) | |
tree | 7d321cf44629d58138869bfd5e3f6f77ef100540 | |
parent | 97e68df5e2a465e7bf5cab14ff347eac82f6a129 (diff) | |
download | pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar.gz pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar.bz2 pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar.lz pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar.xz pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.tar.zst pttbbs-85ae8fdf6e1118df1dc9382c00f65013aa06c86b.zip |
may be not closed
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@799 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/friend.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index 88cc28f7..9876b396 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -1,4 +1,4 @@ -/* $Id: friend.c,v 1.15 2003/01/19 16:06:06 kcwu Exp $ */ +/* $Id: friend.c,v 1.16 2003/04/16 09:25:13 victor Exp $ */ #include "bbs.h" /* ------------------------------------- */ @@ -220,10 +220,12 @@ friend_delete(char *uident, int type) while (fgets(genbuf, STRLEN, fp)) if ((genbuf[0] > ' ') && strncmp(genbuf, uident, length)) fputs(genbuf, nfp); - fclose(fp); - fclose(nfp); Rename(fnnew, fn); } + if(fp) + fclose(fp); + if(nfp) + fclose(nfp); } static void |