summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c2
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);