changeset 83462:75949877b3ed

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
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 30 Jan 2006 20:00:11 +0000
parents 9b150bc96d33
children 38c49afb29d9
files src/callproc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Mon Jan 30 18:06:22 2006 +0000
+++ b/src/callproc.c	Mon Jan 30 20:00:11 2006 +0000
@@ -1540,9 +1540,11 @@
   /* 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;