Commit 0819c3a8 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Don't strdup an empty string

parent ad05b22d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
}