From 3c127bde073723e27faa10cf602b2e53f47fb351 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sun, 29 Nov 2015 20:48:32 +0100 Subject: [PATCH] not only compile without lua, but also work! --- pdns/rec-lua-conf.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/rec-lua-conf.cc b/pdns/rec-lua-conf.cc index 9c4c8c67c..af2d90c11 100644 --- a/pdns/rec-lua-conf.cc +++ b/pdns/rec-lua-conf.cc @@ -31,7 +31,8 @@ LuaConfigItems::LuaConfigItems() #ifndef HAVE_LUA void loadRecursorLuaConfig(const std::string& fname) { - throw PDNSException("Asked to load a Lua configuration file '"+fname+"' in binary without Lua support"); + if(!fname.empty()) + throw PDNSException("Asked to load a Lua configuration file '"+fname+"' in binary without Lua support"); } #else -- 2.40.0