Skip to content

Commit

Permalink
solve dangling pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemaria committed Apr 19, 2024
1 parent 2974f90 commit b8b627c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mad_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ set_stringvar(const char* name, char* string)
{
if ((var = find_variable(c_dum->c, variable_list)) != NULL)
{
if (var->type == 3) var->string = string;
if (var->type == 3) var->string = tmpbuff(string);
}
else
{
Expand Down

0 comments on commit b8b627c

Please sign in to comment.