From 5b06ab032b6b00c189ed40f5d0efcc48e0a49172 Mon Sep 17 00:00:00 2001
From: victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
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@831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 pttbbs/mbbsd/bbs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index bc1cdcb3..6df7f4da 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/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, "���˻y:", path, 40, DOECHO) ||
+	    path == NULL ||
 	!getdata(b_lines - 1, 0, "�T�w�n����, �ХJ�ӦҼ{(Y/N)?[n] ",
 		 yn, 5, LCECHO)
 	|| yn[0] != 'y')
-- 
cgit v1.2.3