add get_child_refs, tests are ok
[protos/libecoli.git] / lib / ecoli_config.c
index aa2d7e3..f8a45d7 100644 (file)
@@ -621,7 +621,7 @@ int
 ec_config_list_add(struct ec_config *list,
                struct ec_config *value)
 {
-       if (list == NULL || list->type != EC_CONFIG_TYPE_LIST) {
+       if (list == NULL || list->type != EC_CONFIG_TYPE_LIST || value == NULL) {
                errno = EINVAL;
                goto fail;
        }