summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 09:20:11 +0800
committerbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-20 09:20:11 +0800
commit8e27397ff2298d6afd6067d2ffae8a65db5adf58 (patch)
tree699b3df1e5c0f5bf4907ee605b34dc9a3e01ea82
parent178f6b24131cbe3fce9ff98f1fd942fccb1205d9 (diff)
downloadpttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar.gz
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar.bz2
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar.lz
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar.xz
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.tar.zst
pttbbs-8e27397ff2298d6afd6067d2ffae8a65db5adf58.zip
non-init var
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1066 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/user.c4
1 files changed, 3 insertions, 1 deletions
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 ){