]> git.eshelyaron.com Git - emacs.git/commitdiff
(a_write): Loop while *ANNOT is listp, not consp. Previous code omitted
authorRoland McGrath <roland@gnu.org>
Tue, 28 Jun 1994 19:00:30 +0000 (19:00 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 28 Jun 1994 19:00:30 +0000 (19:00 +0000)
all data from output files when *ANNOT was nil.

src/fileio.c

index 0a04f713d7b4d34e9ce42d4387dfd2d982d86a5b..1446eaf40338f525c5e4cebcf7fc07d1637db7e0 100644 (file)
@@ -3296,7 +3296,7 @@ a_write (desc, addr, len, pos, annot)
   int nextpos;
   int lastpos = pos + len;
 
-  while (CONSP (*annot))
+  while (NILP (*annot) || CONSP (*annot))
     {
       tem = Fcar_safe (Fcar (*annot));
       if (INTEGERP (tem) && XINT (tem) >= pos && XFASTINT (tem) <= lastpos)