diff options
Diffstat (limited to 'usr.sbin/sysinstall/variable.c')
-rw-r--r-- | usr.sbin/sysinstall/variable.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/variable.c b/usr.sbin/sysinstall/variable.c index 40f2284..1e2bf9a 100644 --- a/usr.sbin/sysinstall/variable.c +++ b/usr.sbin/sysinstall/variable.c @@ -58,7 +58,8 @@ make_variable(char *var, char *value, int dirty) setenv(var, value, 1); free(vp->value); vp->value = strdup(value); - vp->dirty = dirty; + if (dirty != -1) + vp->dirty = dirty; return; } } @@ -68,6 +69,8 @@ make_variable(char *var, char *value, int dirty) vp = (Variable *)safe_malloc(sizeof(Variable)); vp->name = strdup(var); vp->value = strdup(value); + if (dirty == -1) + dirty = 0; vp->dirty = dirty; vp->next = VarHead; VarHead = vp; |