aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1992-05-10 18:15:10 +0000
committerJim Blandy <[email protected]>1992-05-10 18:15:10 +0000
commite065a56e2d6322cba165ceb5c1d46cc59c5a5148 (patch)
tree4b00ff121a271a6b9e8df84cf7eb1fb340be0e3d /src/emacs.c
parent1b1f8f85bf08bd6b1cdb5ca8d731ff3b12ff60d2 (diff)
*** empty log message ***
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 90a86b2672..104ba67125 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -721,7 +721,10 @@ decode_env_path (evarname, defalt)
/* It's okay to use getenv here, because this function is only used
to initialize variables when Emacs starts up, and isn't called
after that. */
- path = (char *) getenv (evarname);
+ if (evarname != 0)
+ path = (char *) getenv (evarname);
+ else
+ path = 0;
if (!path)
path = defalt;
lpath = Qnil;