From: bert hubert Date: Sun, 29 Nov 2015 19:48:32 +0000 (+0100) Subject: not only compile without lua, but also work! X-Git-Tag: dnsdist-1.0.0-alpha1~171^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2959%2Fhead;p=thirdparty%2Fpdns.git not only compile without lua, but also work! --- diff --git a/pdns/rec-lua-conf.cc b/pdns/rec-lua-conf.cc index 9c4c8c67cb..af2d90c112 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