From 0554f2335f73b62e82e4fc2dd8b6b9bf05a78502 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 13 Jun 2018 23:10:35 +0000 Subject: [PATCH] dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C This caused a compilation failure using gcc6 on FBSD 11.1-STABLE. --- cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1