summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2006-01-30 20:00:11 +0000
committerKaroly Lorentey <lorentey@elte.hu>2006-01-30 20:00:11 +0000
commit55187be10d911cb5c0b41b6a64b5e9edb28ae60a (patch)
tree82fa65d85587873896a4c3d56220bbf065feba2e /src/callproc.c
parente31331e5cb40d3e56e4160229b33f2dad9d5e4ab (diff)
downloademacs-55187be10d911cb5c0b41b6a64b5e9edb28ae60a.tar.gz
Fix compilation error on older GCCs (reported by "mace").
* src/callproc.c (getenv_internal): Fix C99ism. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-502
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 71071217208..25861602c85 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1540,9 +1540,11 @@ getenv_internal (var, varlen, value, valuelen, frame)
/* Find the environment in which to search the variable. */
if (!NILP (frame))
{
+ Lisp_Object local;
+
CHECK_FRAME (frame);
frame = Fframe_with_environment (frame);
- Lisp_Object local = get_frame_param (XFRAME (frame), Qenvironment);
+ local = get_frame_param (XFRAME (frame), Qenvironment);
/* Use Vglobal_environment if there is no local environment. */
if (!NILP (local))
environment = local;