X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=src%2Fextension%2Fdb.h;h=9d4fc77d3da8c8582cc4e3bab3c5f803e672f8cd;hb=989fc06869090cc6b38cb54c4f3194009addd260;hp=264e7653925fc31a138fa6ef39512cf39f134384;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/extension/db.h b/src/extension/db.h index 264e76539..9d4fc77d3 100644 --- a/src/extension/db.h +++ b/src/extension/db.h @@ -17,6 +17,7 @@ #include #include +#include #include "extension/extension.h" @@ -29,7 +30,13 @@ private: to find the different extensions in the hash map. */ struct ltstr { bool operator()(const char* s1, const char* s2) const { - return strcmp(s1, s2) < 0; + if ( (s1 == NULL) && (s2 != NULL) ) { + return true; + } else if (s1 == NULL || s2 == NULL) { + return false; + } else { + return strcmp(s1, s2) < 0; + } } }; /** This is the actual database. It has all of the modules in it, @@ -58,7 +65,7 @@ public: typedef std::list InputList; typedef std::list EffectList; - InputList &get_input_list (InputList &ou_list); + InputList &get_input_list (InputList &ou_list); OutputList &get_output_list (OutputList &ou_list); EffectList &get_effect_list (EffectList &ou_list); }; /* class DB */