X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..0f3e9cfc4b5d0f13085c975e10c0e6c4c8e5fbc3:/src/recdb.c diff --git a/src/recdb.c b/src/recdb.c index 67c3e70..5399622 100644 --- a/src/recdb.c +++ b/src/recdb.c @@ -1,7 +1,7 @@ /* recdb.c - recursive/record database implementation * Copyright 2000-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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; }