diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-04-06 11:04:35 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-04-06 11:04:35 +0800 |
commit | 58140734f7483da8c4ed1113297144d653779d94 (patch) | |
tree | e251b6da38868a79158c46132bd53898fd376377 | |
parent | 7ac02f0555ec1f6cf59c9bdc5fab42e90250e1b7 (diff) | |
download | pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar.gz pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar.bz2 pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar.lz pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar.xz pttbbs-58140734f7483da8c4ed1113297144d653779d94.tar.zst pttbbs-58140734f7483da8c4ed1113297144d653779d94.zip |
fix NULL vs \0
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5599 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/friend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index 8cf2eca2..d7a4d10c 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -180,7 +180,7 @@ friend_append(int type, int count) if (j == FRIEND_SPECIAL) friend_special(); - if (!friend_file[j]) + if (!*friend_file[j]) return; setfriendfile(sfile, j); |