summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-27 13:52:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-27 13:52:51 +0800
commitf7b66a549e691e5195eaeac9c15c88b6ca5beab3 (patch)
treee9e540f59d695b5a78454760a45b27ca0958826c /mbbsd
parenta474aed2d57deaadb2fa0715a4483639f1290e70 (diff)
downloadpttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar.gz
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar.bz2
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar.lz
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar.xz
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.tar.zst
pttbbs-f7b66a549e691e5195eaeac9c15c88b6ca5beab3.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 992b6721..3a011825 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.59 2003/02/27 05:50:41 in2 Exp $ */
+/* $Id: cache.c,v 1.60 2003/02/27 05:52:51 in2 Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -65,7 +65,7 @@ attach_err(int shmkey, char *name)
void *
attach_shm(int shmkey, int shmsize)
{
- void *shmptr;
+ void *shmptr = (void *)NULL;
int shmid;
shmid = shmget(shmkey, shmsize, 0);