]> granicus.if.org Git - pdns/commitdiff
not only compile without lua, but also work!
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 29 Nov 2015 19:48:32 +0000 (20:48 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 29 Nov 2015 19:48:32 +0000 (20:48 +0100)
pdns/rec-lua-conf.cc

index 9c4c8c67cbc86b0962163142becf3b40ea91cceb..af2d90c1123e92fce3f53accddbcd50766e0acba 100644 (file)
@@ -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