From 547664b5427ad388486616be17f271ddcb2ba2ee Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 9 May 2003 15:06:22 +0000 Subject: exit if recommend a blank line git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index bc1cdcb3..6df7f4da 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.90 2003/05/07 08:16:30 victor Exp $ */ +/* $Id: bbs.c,v 1.91 2003/05/09 15:06:22 victor Exp $ */ #include "bbs.h" static int recommend(int ent, fileheader_t * fhdr, char *direct); @@ -1263,6 +1263,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct) #endif if (!getdata(b_lines - 2, 0, "推薦語:", path, 40, DOECHO) || + path == NULL || !getdata(b_lines - 1, 0, "確定要推薦, 請仔細考慮(Y/N)?[n] ", yn, 5, LCECHO) || yn[0] != 'y') -- cgit v1.2.3