summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-01 01:19:53 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-01 01:19:53 +0800
commita1f095ed466c04ed003363810590c19cca2cacc3 (patch)
tree5e0213c2d706b7357a6cb398cb984cd144ecd1f0
parent770a864a23d078ed050edb116ee27db0ea43a449 (diff)
downloadpttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar.gz
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar.bz2
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar.lz
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar.xz
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.tar.zst
pttbbs-a1f095ed466c04ed003363810590c19cca2cacc3.zip
remove black hole
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1904 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/record.c4
1 files 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);