]> git.tdb.fi Git - libs/datafile.git/commitdiff
Make ignored keywords work properly
authorMikko Rasa <tdb@tdb.fi>
Tue, 23 Feb 2010 14:39:45 +0000 (14:39 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 23 Feb 2010 14:39:45 +0000 (14:39 +0000)
source/loader.cpp

index de9323a36269ebc51656c75e1c771a1f169bb706..54604dd8bebcd20abbd7892bc254aaf0b4c9ec8a 100644 (file)
@@ -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())
        {