aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/getenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getenv.c b/lib/getenv.c
index 475c3d3ca..ca88234fa 100644
--- a/lib/getenv.c
+++ b/lib/getenv.c
@@ -55,7 +55,7 @@ char *GetEnv(const char *variable)
if (env && strcmp("HOME",variable) == 0)
env = decc$translate_vms(env);
#endif
- return env?strdup(env):NULL;
+ return (env && env[0])?strdup(env):NULL;
#endif
#endif
}