changeset 7188:7da4ad9a2a8f

(update_frame): Move those assignments even farther down.
author Richard M. Stallman <rms@gnu.org>
date Fri, 29 Apr 1994 04:54:39 +0000
parents ca0102511d80
children c8023bf9c03d
files src/dispnew.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Fri Apr 29 04:04:51 1994 +0000
+++ b/src/dispnew.c	Fri Apr 29 04:54:39 1994 +0000
@@ -1168,7 +1168,7 @@
      int inhibit_hairy_id;
 {
   register struct frame_glyphs *current_frame;
-  register struct frame_glyphs *desired_frame;
+  register struct frame_glyphs *desired_frame = 0;
   register int i;
   int pause;
   int preempt_count = baud_rate / 2400 + 1;
@@ -1177,10 +1177,6 @@
   register int downto, leftmost;
 #endif
 
-  /* These are separate to avoid a possible bug in the AIX C compiler.  */
-  current_frame = FRAME_CURRENT_GLYPHS (f);
-  desired_frame = FRAME_DESIRED_GLYPHS (f);
-
   if (preempt_count <= 0)
     preempt_count = 1;
 
@@ -1198,6 +1194,10 @@
   if (!line_ins_del_ok)
     inhibit_hairy_id = 1;
 
+  /* These are separate to avoid a possible bug in the AIX C compiler.  */
+  current_frame = FRAME_CURRENT_GLYPHS (f);
+  desired_frame = FRAME_DESIRED_GLYPHS (f);
+
   /* See if any of the desired lines are enabled; don't compute for
      i/d line if just want cursor motion. */
   for (i = 0; i < FRAME_HEIGHT (f); i++)
@@ -1335,7 +1335,8 @@
   if (FRAME_HEIGHT (f) == 0) abort (); /* Some bug zeros some core */
   display_completed = !pause;
 
-  bzero (desired_frame->enable, FRAME_HEIGHT (f));
+  if (desired_frame)
+    bzero (desired_frame->enable, FRAME_HEIGHT (f));
   return pause;
 }