Skip to content

Commit 1d309e0

Browse files
authored
Merge pull request #1221 from rdemaria/master
Fix dangling pointer
2 parents 03ba2a6 + b8b627c commit 1d309e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = 5.09.01
2-
VERSION_NUM = 50901
3-
VERSION_DATE = 2023.12.04
1+
VERSION = 5.09.02
2+
VERSION_NUM = 50902
3+
VERSION_DATE = 2024.04.18

src/mad_var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ set_stringvar(const char* name, char* string)
455455
{
456456
if ((var = find_variable(c_dum->c, variable_list)) != NULL)
457457
{
458-
if (var->type == 3) var->string = string;
458+
if (var->type == 3) var->string = tmpbuff(string);
459459
}
460460
else
461461
{

0 commit comments

Comments
 (0)