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
commit384204e4b6debf6a4dc09dfc53391044a3fc8741 (patch)
tree1bf683a434706ee55ad4a13d14e47eb5cfef08d1
parent24ec3204b34c9e6749b9312f2edb84edb2a4cb34 (diff)
downloadpttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar.gz
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar.bz2
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar.lz
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar.xz
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.tar.zst
pttbbs-384204e4b6debf6a4dc09dfc53391044a3fc8741.zip
non-init var
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1066 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 39a68c0b..53ea8d19 100644
--- a/mbbsd/user.c
+++ b/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 ){