revert 10881, and refix by changing "if (vallen)" to "if (val)". this
is per the upstream fix for dash, in dash_0.5.2-6.diff. thanks vodz, for catching this.
This commit is contained in:
parent
0840b76602
commit
8de331def0
@ -12001,8 +12001,9 @@ setvar(const char *name, const char *val, int flags)
|
|||||||
}
|
}
|
||||||
INTOFF;
|
INTOFF;
|
||||||
p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen);
|
p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen);
|
||||||
*p++ = '=';
|
*p++ = '\0';
|
||||||
if (vallen) {
|
if (val) {
|
||||||
|
p[-1] = '=';
|
||||||
p = mempcpy(p, val, vallen);
|
p = mempcpy(p, val, vallen);
|
||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user