From a515329bac47f968ff3988b888d6eae14713255c Mon Sep 17 00:00:00 2001 From: heckflosse Date: Thu, 14 Sep 2017 13:24:19 +0200 Subject: [PATCH] Don't pass nullptr to lensfun Load() --- rtengine/rtlensfun.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/rtlensfun.cc b/rtengine/rtlensfun.cc index 06c01f975..32d498589 100644 --- a/rtengine/rtlensfun.cc +++ b/rtengine/rtlensfun.cc @@ -267,7 +267,7 @@ bool LFDatabase::init(const Glib::ustring &dbdir) std::cout << "..." << std::flush; } - bool ok = instance_.data_->Load(dbdir.empty() ? nullptr : dbdir.c_str()) == LF_NO_ERROR; + bool ok = dbdir.empty() ? instance_.data_->Load() : instance_.data_->Load(dbdir.c_str()) == LF_NO_ERROR; if (settings->verbose) { std::cout << (ok ? "OK" : "FAIL") << std::endl;