git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add get_child_refs, tests are ok
[protos/libecoli.git]
/
lib
/
ecoli_config.c
diff --git
a/lib/ecoli_config.c
b/lib/ecoli_config.c
index
2eae560
..
f8a45d7
100644
(file)
--- a/
lib/ecoli_config.c
+++ b/
lib/ecoli_config.c
@@
-621,7
+621,7
@@
int
ec_config_list_add(struct ec_config *list,
struct ec_config *value)
{
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;
}
errno = EINVAL;
goto fail;
}
@@
-675,7
+675,7
@@
static struct ec_config *
ec_config_dict_dup(const struct ec_keyval *dict)
{
struct ec_config *dup = NULL, *value;
ec_config_dict_dup(const struct ec_keyval *dict)
{
struct ec_config *dup = NULL, *value;
- struct ec_keyval_iter *iter;
+ struct ec_keyval_iter *iter
= NULL
;
const char *key;
dup = ec_config_dict();
const char *key;
dup = ec_config_dict();