summaryrefslogtreecommitdiffstats
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
commitef609820f2b93bff009511b9e0715c1ff4a1f5af (patch)
tree9c057df2a331d3d1751809403b1755ad58f43499
parent0f5ba4098a7aefab0b675bd580d6954ebbae4d94 (diff)
downloadpttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar.gz
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar.bz2
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar.lz
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar.xz
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.tar.zst
pttbbs-ef609820f2b93bff009511b9e0715c1ff4a1f5af.zip
fix memory error
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@495 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index db335241..c74dd2b2 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/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