From a2d4cf72c0ab07d4e58b42c01ac3ed2b95ca8d9b Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Wed, 11 Mar 2015 08:55:50 -0700 Subject: Fix BZ #18043 comment # 19: don't call undefined setenv(..., NULL, 1). --- posix/wordexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix/wordexp.c') diff --git a/posix/wordexp.c b/posix/wordexp.c index f470e083ef..f6062d58c8 100644 --- a/posix/wordexp.c +++ b/posix/wordexp.c @@ -1915,7 +1915,7 @@ envsubst: if (pattern && !value) goto no_space; - __setenv (env, value, 1); + __setenv (env, value ?: "", 1); break; default: -- cgit v1.2.1