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/gomo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd/gomo.c') diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index b7665bae..3a8fcd5f 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -1,4 +1,4 @@ -/* $Id: gomo.c,v 1.11 2003/01/16 14:14:12 kcwu Exp $ */ +/* $Id: gomo.c,v 1.12 2003/01/19 16:06:06 kcwu Exp $ */ #include "bbs.h" static char *chess[] = {"¡´", "¡³"}; @@ -56,6 +56,7 @@ HO_log(Horder_t *pool, char *user) snprintf(buf, sizeof(buf), "home/%c/%s/F.%d", cuser.userid[0], cuser.userid, rand() & 65535); log = fopen(buf, "w"); + assert(log); for (i = 1; i < 17; i++) fprintf(log, "%.*s\n", big_picture[i].len, big_picture[i].data); -- cgit v1.2.3