commit | 486e4f9868ba92c8e10c9afb9a6e2bd982f25d8c | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 01 13:12:32 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 01 13:30:22 2021 +0200 |
tree | e02b60242105043d08bcb35e65bd70f2d7ab65fd | |
parent | e4e0d6cdd7a24f555225764268182d570a9069dd [diff] |
lyb parser BUGFIX init var to append to
diff --git a/src/parser_lyb.c b/src/parser_lyb.c index b4696a6..f1d2087 100644 --- a/src/parser_lyb.c +++ b/src/parser_lyb.c
@@ -489,7 +489,7 @@ { LY_ERR ret = LY_SUCCESS; uint8_t count, i; - struct lyd_attr *attr2; + struct lyd_attr *attr2 = NULL; char *prefix = NULL, *module_name = NULL, *name = NULL, *value = NULL; ly_bool dynamic = 0; LY_VALUE_FORMAT format = 0;