From 9d0be21cc1b2594d3113a0ea238646053430870a Mon Sep 17 00:00:00 2001 From: Keenan Lang Date: Wed, 27 Aug 2014 13:31:16 -0500 Subject: [PATCH] MAC_HANDLE's in iocshBody weren't being created with environment variables. --- src/libCom/iocsh/iocsh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/iocsh/iocsh.cpp b/src/libCom/iocsh/iocsh.cpp index b239287c5..c8347794f 100644 --- a/src/libCom/iocsh/iocsh.cpp +++ b/src/libCom/iocsh/iocsh.cpp @@ -509,7 +509,7 @@ iocshBody (const char *pathname, const char *commandLine, const char *macros) struct iocshCommand *found; void *readlineContext = NULL; int wasOkToBlock; - static char *pairs[] = {NULL, NULL}; + static char *pairs[] = {"", "environ", NULL, NULL}; MAC_HANDLE *handle; char ** defines = NULL;