mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-10-24 05:09:57 +00:00
Formerly main.c.~102~
This commit is contained in:
parent
b8c55666a7
commit
4f752036ac
1 changed files with 5 additions and 1 deletions
6
main.c
6
main.c
|
@ -497,7 +497,11 @@ main (argc, argv, envp)
|
||||||
register char *ep = envp[i];
|
register char *ep = envp[i];
|
||||||
while (*ep != '=')
|
while (*ep != '=')
|
||||||
++ep;
|
++ep;
|
||||||
define_variable (envp[i], ep - envp[i], ep + 1, o_env, 1)
|
/* The result of pointer arithmetic is cast to unsigned int for
|
||||||
|
machines where ptrdiff_t is a different size that doesn't widen
|
||||||
|
the same. */
|
||||||
|
define_variable (envp[i], (unsigned int) (ep - envp[i]),
|
||||||
|
ep + 1, o_env, 1)
|
||||||
/* Force exportation of every variable culled from the environment.
|
/* Force exportation of every variable culled from the environment.
|
||||||
We used to rely on target_environment's v_default code to do this.
|
We used to rely on target_environment's v_default code to do this.
|
||||||
But that does not work for the case where an environment variable
|
But that does not work for the case where an environment variable
|
||||||
|
|
Loading…
Reference in a new issue