summaryrefslogtreecommitdiffstats
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
commit610ff0b10e08dc5e9321e819f338acc0bd805c14 (patch)
tree003fdf733cf2c4139c6aeab7b5699572f2315e30
parent74129f0f1d53e8ddc9c71783cb0745581f5a5fa4 (diff)
downloadpttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar.gz
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar.bz2
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar.lz
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar.xz
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.tar.zst
pttbbs-610ff0b10e08dc5e9321e819f338acc0bd805c14.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/cache.c b/pttbbs/mbbsd/cache.c
index 992b6721..3a011825 100644
--- a/pttbbs/mbbsd/cache.c
+++ b/pttbbs/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);