[Tarantool-patches] [PATCH] popen: fix empty envp type for nonlinux builds

Cyrill Gorcunov gorcunov at gmail.com
Fri Feb 28 10:49:14 MSK 2020


Fix for f58cb606a

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/lib/core/popen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/core/popen.c b/src/lib/core/popen.c
index 2f27b49a2..1cfe58ee0 100644
--- a/src/lib/core/popen.c
+++ b/src/lib/core/popen.c
@@ -612,7 +612,7 @@ get_envp(struct popen_opts *opts)
 		if (!said)
 			say_warn("popen: Environment inheritance "
 				 "unsupported, passing empty");
-		return (char *)empty_envp;
+		return (char **)empty_envp;
 #endif
 	}
 	return opts->env;
-- 
2.20.1



More information about the Tarantool-patches mailing list