VarAdd() already does the debug printing, so Var_Set() only needs to do it
in the case the var already exists.
This commit is contained in:
parent
bd869cbeea
commit
1926f541c8
@ -1025,10 +1025,9 @@ Var_Set(const char *name, const char *val, GNode *ctxt)
|
||||
*/
|
||||
setenv(n, val, 1);
|
||||
}
|
||||
|
||||
DEBUGF(VAR, ("%s:%s = %s\n", ctxt->name, n, val));
|
||||
}
|
||||
|
||||
DEBUGF(VAR, ("%s:%s = %s\n", ctxt->name, n, val));
|
||||
free(n);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user