Re: clearing the environment
Felix von Leitner <[email protected]> Sun, 3 Jun 2012 06:27:41 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> What would be the proper way of clearing the environment before setting some > variable and then execve()'ing? execve takes the new environment as an argument. The proper way is to pass a pointer to an empty environment to execve. Note there is a difference between NULL and a pointer to NULL. :) Felix