1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Fix build with Clang 6

Reported by:	ler
Tested by:	ler
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-01-14 07:07:02 +00:00
parent 1c282a3323
commit 817c55606a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458954

View File

@ -0,0 +1,11 @@
--- kcdbext.h.orig 2012-05-24 16:27:59 UTC
+++ kcdbext.h
@@ -1278,7 +1278,7 @@ class IndexDB {
if (omode_ == 0) {
set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened");
*sp = 0;
- return false;
+ return NULL;
}
if (!cache_) return db_.get(kbuf, ksiz, sp);
size_t dvsiz = 0;