From: Jon Trulson Date: Wed, 13 Jun 2018 23:10:35 +0000 (+0000) Subject: dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C X-Git-Tag: 2.3.0~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0554f2335f73b62e82e4fc2dd8b6b9bf05a78502;p=oweals%2Fcde.git dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C This caused a compilation failure using gcc6 on FBSD 11.1-STABLE. --- diff --git a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C index a6f7db1c..d911e800 100644 --- a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C +++ b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C @@ -658,7 +658,7 @@ DtSR_SearchEngine::search(UAS_String oql, UAS_SearchScope& scope, for (i = 0; i < books.numItems(); i++) { UAS_Pointer bcase(bookcases[index]->bcase()); UAS_String bookid = resolve_bookid(bcase, books[i]); - if ((char*)bookid == (int)NULL || *(char*)bookid == '\0') + if ((char*)bookid == NULL || *(char*)bookid == '\0') continue; bookid_dict[bookid] = True;