aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2006-01-30 20:00:11 +0000
committerKaroly Lorentey2006-01-30 20:00:11 +0000
commit55187be10d911cb5c0b41b6a64b5e9edb28ae60a (patch)
tree82fa65d85587873896a4c3d56220bbf065feba2e /src
parente31331e5cb40d3e56e4160229b33f2dad9d5e4ab (diff)
downloademacs-55187be10d911cb5c0b41b6a64b5e9edb28ae60a.tar.gz
emacs-55187be10d911cb5c0b41b6a64b5e9edb28ae60a.zip
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')
-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)
1540 /* Find the environment in which to search the variable. */ 1540 /* Find the environment in which to search the variable. */
1541 if (!NILP (frame)) 1541 if (!NILP (frame))
1542 { 1542 {
1543 Lisp_Object local;
1544
1543 CHECK_FRAME (frame); 1545 CHECK_FRAME (frame);
1544 frame = Fframe_with_environment (frame); 1546 frame = Fframe_with_environment (frame);
1545 Lisp_Object local = get_frame_param (XFRAME (frame), Qenvironment); 1547 local = get_frame_param (XFRAME (frame), Qenvironment);
1546 /* Use Vglobal_environment if there is no local environment. */ 1548 /* Use Vglobal_environment if there is no local environment. */
1547 if (!NILP (local)) 1549 if (!NILP (local))
1548 environment = local; 1550 environment = local;