Skip to content

Commit

Permalink
Dup value string in hex_cfg_set()
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah authored May 6, 2024
1 parent d9955c1 commit 5ef835f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handwritten/asm_hexagon_c/initialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static bool hex_cfg_set(void *user, void *data) {
}
if (cnode) {
pnode->i_value = cnode->i_value;
pnode->value = cnode->value;
pnode->value = strdup(cnode->value);
return true;
}
return false;
Expand Down

0 comments on commit 5ef835f

Please sign in to comment.