aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index fbb348cf9..9dfebc059 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -433,6 +433,9 @@ getBlockParam(const struct config_param * param, const char *name)
struct block_param *ret = NULL;
int i;
+ if (param == NULL)
+ return NULL;
+
for (i = 0; i < param->num_block_params; i++) {
if (0 == strcmp(name, param->block_params[i].name)) {
if (ret) {