From: Mikko Rasa Date: Tue, 23 Feb 2010 14:39:45 +0000 (+0000) Subject: Make ignored keywords work properly X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6fde1d2f014faa23b988d0db9d2437ff9745294b;p=libs%2Fdatafile.git Make ignored keywords work properly --- diff --git a/source/loader.cpp b/source/loader.cpp index de9323a..54604dd 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -119,7 +119,7 @@ void Loader::load_sub_with(Loader &ldr) void Loader::add(const string &kwd, LoaderAction *act) { - ActionKey key(kwd, act->get_signature()); + ActionKey key(kwd, (act ? act->get_signature() : "*")); ActionMap::iterator i = actions.find(key); if(i!=actions.end()) {