summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 15:37:47 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 15:37:47 +0800
commit44ebcc9a3e9bcd18b11123044e03223e420a8da7 (patch)
treedbc671c5ecbc5cfbb5edf8b7d6dfea458a7987bc /mbbsd
parent76ed1d523a9471bb5a0535b0752a0091f064e3e3 (diff)
downloadpttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar.gz
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar.bz2
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar.lz
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar.xz
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.tar.zst
pttbbs-44ebcc9a3e9bcd18b11123044e03223e420a8da7.zip
fix memory error
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@495 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index db335241..c74dd2b2 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1,4 +1,4 @@
-/* $Id: edit.c,v 1.17 2002/08/25 07:13:53 in2 Exp $ */
+/* $Id: edit.c,v 1.18 2002/08/25 07:37:47 in2 Exp $ */
#include "bbs.h"
typedef struct textline_t {
struct textline_t *prev;
@@ -767,6 +767,7 @@ write_header(FILE * fp)
int number; /* post number */
} postlog;
+ memset(&postlog, 0, sizeof(postlog));
strlcpy(postlog.author, cuser.userid, sizeof(postlog.author));
ifuseanony = 0;
#ifdef HAVE_ANONYMOUS