Skip to content

Commit 965c93c

Browse files
committed
parser json REFACTOR uninit var false positive
1 parent 093f4b4 commit 965c93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ lydjson_parse_attribute(struct lyd_json_ctx *lydctx, struct lyd_node *attr_node,
11901190
enum LYJSON_PARSER_STATUS *status_p, struct lyd_node **first_p, struct lyd_node **node_p)
11911191
{
11921192
LY_ERR r;
1193-
const char *opaq_name, *mod_name, *attr_mod;
1193+
const char *opaq_name, *mod_name, *attr_mod = NULL;
11941194
size_t opaq_name_len, attr_mod_len;
11951195

11961196
if (!attr_node) {

0 commit comments

Comments
 (0)