summaryrefslogtreecommitdiff
path: root/src/os_posix
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-22 15:10:56 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-22 15:10:56 -0500
commit7d4775f6a7af8fd86095cd1df2d05fb90f84fde2 (patch)
treebac3208c8b63d605c96c422a4e0b8c26ea50bb99 /src/os_posix
parentbcc400cc4e868dd4488b989e895f96248169a414 (diff)
downloadmongo-7d4775f6a7af8fd86095cd1df2d05fb90f84fde2.tar.gz
Prettiness police, NULL vs. nul, KNF, no functional change.
Diffstat (limited to 'src/os_posix')
-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);
}