diff options
Diffstat (limited to 'posix/tst-execle1.c')
-rw-r--r-- | posix/tst-execle1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c index adea0a8d46..bacf51b1a2 100644 --- a/posix/tst-execle1.c +++ b/posix/tst-execle1.c @@ -6,8 +6,9 @@ static int do_test (void) { static const char prog[] = "does-not-exist"; + char *env [] = {"FOO=BAR", NULL}; errno = 0; - execle (prog, prog, NULL, "FOO=BAR", NULL); + execle (prog, prog, NULL, env); if (errno != ENOENT) { |