From 8e27397ff2298d6afd6067d2ffae8a65db5adf58 Mon Sep 17 00:00:00 2001 From: bbs Date: Sun, 20 Jul 2003 01:20:11 +0000 Subject: non-init var git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1066 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 39a68c0b..53ea8d19 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.71 2003/07/18 11:03:45 victor Exp $ */ +/* $Id: user.c,v 1.72 2003/07/20 01:20:11 bbs Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -1254,6 +1254,8 @@ u_register(void) getfield(2, "Y/n", "¬O§_¬°¥»°êÄy¡H", fore, 2); if (fore[0] == 'n') fore[0] |= FOREIGN; + else + fore[0] = 0; if (!fore[0]){ #endif while( 1 ){ -- cgit v1.2.3