From 795d7da28a8514e8315643820badb86919da2e2e Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 19 Jan 2003 16:06:06 +0000 Subject: * there are so many fopen() without fclose() * assert fopen() * clean up git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/syspost.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/syspost.c') diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index a44ffdb3..8fdc361c 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -1,4 +1,4 @@ -/* $Id: syspost.c,v 1.17 2003/01/16 13:28:48 kcwu Exp $ */ +/* $Id: syspost.c,v 1.18 2003/01/19 16:06:06 kcwu Exp $ */ #include "bbs.h" int @@ -94,7 +94,8 @@ post_change_perm(int oldperm, int newperm, char *sysopid, char *userid) cuser.userid, userid); strlcpy(fhdr.owner, "[系統安全局]", sizeof(fhdr.owner)); append_record("boards/S/Security/.DIR", &fhdr, sizeof(fhdr)); - } + } else + fclose(fp); } void -- cgit v1.2.3