summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 05:44:19 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 05:44:19 +0800
commit6ca800ae0a303124ffd12ca4a712b6cdb01e69e7 (patch)
tree6603a5393c9be5af373f3dd3994410ecf02a1350
parentcc14ad9eb6c9b6674f83b270c64e3890ef50260a (diff)
downloadpttbbs-victor.edit@2465.tar
pttbbs-victor.edit@2465.tar.gz
pttbbs-victor.edit@2465.tar.bz2
pttbbs-victor.edit@2465.tar.lz
pttbbs-victor.edit@2465.tar.xz
pttbbs-victor.edit@2465.tar.zst
pttbbs-victor.edit@2465.zip
bug fix: variable uninitialized in utmpfix daemon-sleep mode.victor.edit@2465
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2465 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/shmctl.c2
1 files changed, 2 insertions, 0 deletions
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;