summaryrefslogtreecommitdiff
path: root/src/os_posix/os_getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_posix/os_getenv.c')
-rw-r--r--src/os_posix/os_getenv.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/os_posix/os_getenv.c b/src/os_posix/os_getenv.c
index 83cf8a75770..37fe2af8501 100644
--- a/src/os_posix/os_getenv.c
+++ b/src/os_posix/os_getenv.c
@@ -9,18 +9,17 @@
/*
* __wt_getenv --
- * Get a non-null environment variable
+ * Get a non-NULL, greater than zero-length environment variable.
*/
int
-__wt_getenv(WT_SESSION_IMPL *session, const char *variable, const char **env)
+__wt_getenv(WT_SESSION_IMPL *session, const char *variable, const char **envp)
{
const char *temp;
- *env = NULL;
+ *envp = NULL;
- if (((temp = getenv(variable)) != NULL) && strlen(temp) > 0) {
- return (__wt_strdup(session, temp, env));
- }
+ if (((temp = getenv(variable)) != NULL) && strlen(temp) > 0)
+ return (__wt_strdup(session, temp, envp));
return (WT_NOTFOUND);
}