From 6ca800ae0a303124ffd12ca4a712b6cdb01e69e7 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 4 Feb 2005 21:44:19 +0000 Subject: bug fix: variable uninitialized in utmpfix daemon-sleep mode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2465 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/shmctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/shmctl.c b/util/shmctl.c index 17938461..b9b3e022 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -140,6 +140,8 @@ int utmpfix(int argc, char **argv) } DoUtmpfix: + killtop=0; + changeflag=0; for( i = 0 ; i < 5 ; ++i ) if( !SHM->UTMPbusystate ) break; -- cgit v1.2.3