mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Initialize pushed value to ERR_TYPE to avoid inappropriate possible free() later on.
This commit is contained in:
@@ -1125,6 +1125,7 @@ int PushSysvars(void)
|
||||
for (i=0; i<NUMSYSVARS; i++) {
|
||||
if (SysVarArr[i].modifiable) {
|
||||
ps->vars[j].name = SysVarArr[i].name;
|
||||
ps->vars[j].v.type = ERR_TYPE;
|
||||
r = GetSysVar(ps->vars[j].name, &(ps->vars[j].v));
|
||||
if (r != OK) ret = r;
|
||||
/* fprintf(ErrFp, "push($%s) => %s\n", ps->vars[j].name, PrintValue(&(ps->vars[j].v), NULL)); */
|
||||
|
||||
Reference in New Issue
Block a user