dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C
authorJon Trulson <jon@radscan.com>
Wed, 13 Jun 2018 23:10:35 +0000 (23:10 +0000)
committerJon Trulson <jon@radscan.com>
Wed, 13 Jun 2018 23:57:46 +0000 (17:57 -0600)
This caused a compilation failure using gcc6 on FBSD 11.1-STABLE.

cde/programs/dtinfo/dtinfo/src/UAS/DtSR/DtSR_SearchEngine.C

index a6f7db1c2c5449914d6933b2c5942351a13351d6..d911e80014e1a1d610da2af00f0bc693477965ac 100644 (file)
@@ -658,7 +658,7 @@ DtSR_SearchEngine::search(UAS_String oql, UAS_SearchScope& scope,
            for (i = 0; i < books.numItems(); i++) {
                UAS_Pointer<UAS_Common> 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;