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;