summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfbec7d)
raw | patch | inline | side by side (parent: bfbec7d)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 May 2006 07:09:55 +0000 (07:09 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 May 2006 07:09:55 +0000 (07:09 +0000) |
src/extension/db.h | patch | blob | history |
diff --git a/src/extension/db.h b/src/extension/db.h
index 264e7653925fc31a138fa6ef39512cf39f134384..c67a62bf2b4bc6b46dae9bd5420d42610f795ed1 100644 (file)
--- a/src/extension/db.h
+++ b/src/extension/db.h
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,