]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/recdb.c
This should fix the nickserv module complaining about not enough parameters when...
[irc/evilnet/x3.git] / src / recdb.c
index 41f82bd31d5322c5b9b4b45ea1505b7d969c4c9b..5399622555f7e2881e11e82947a4664a9246a9d4 100644 (file)
@@ -240,6 +240,10 @@ database_get_path(dict_t db, const char *path)
 void*
 database_get_data(dict_t db, const char *path, enum recdb_type type)
 {
+    assert(path != NULL);
+    if(!path)
+        log_module(MAIN_LOG, LOG_WARNING, "Null path in database_get_data()");
+    /* log_module(MAIN_LOG, LOG_DEBUG, "Reading config option '%s'", path); */
     struct record_data *rd = database_get_path(db, path);
     return (rd && rd->type == type) ? rd->d.whatever : NULL;
 }