From a1f095ed466c04ed003363810590c19cca2cacc3 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 30 Apr 2004 17:19:53 +0000 Subject: remove black hole git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1904 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/record.c b/mbbsd/record.c index be3b1c07..c8393f6f 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -141,12 +141,12 @@ substitute_ref_record(char *direct, fileheader_t * fhdr, int ent) get_record(genbuf, &hdr, sizeof(hdr), num); if (strcmp(hdr.filename, fhdr->filename)) { - if((num = getindex(genbuf, fhdr, num))) + if((num = getindex(genbuf, fhdr, num))>0) { substitute_record(genbuf, fhdr, sizeof(*fhdr), num); } } - else + else if(num>0) { fhdr->money = hdr.money; substitute_record(genbuf, fhdr, sizeof(*fhdr), num); -- cgit v1.2.3