diff options
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 5 |
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; |