diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-27 11:12:42 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-27 11:12:42 +0000 |
commit | 403f14ef1e6f481d9b833e53846c421cf76607e3 (patch) | |
tree | 675fb0bb703a722dbe6ccb88ea15f09bc14f915b /linux-user | |
parent | 8dfdb87c8d675b846e12c8066922525e22bcfc50 (diff) |
Fix environ termination, by Andreas Schwab.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3027 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index fe2cc5817e..8d24a1fc17 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1819,7 +1819,7 @@ int main(int argc, char **argv) continue; *(dst++) = strdup(*wrk); } - dst = NULL; /* NULL terminate target_environ */ + *dst = NULL; /* NULL terminate target_environ */ if (loader_exec(filename, argv+optind, target_environ, regs, info) != 0) { printf("Error loading %s\n", filename); |