summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-06-28 19:00:30 +0000
committerRoland McGrath <roland@gnu.org>1994-06-28 19:00:30 +0000
commiteb15aa1822623116d37b654465b55c56ffe6663d (patch)
tree41fc7ec1798a5e9bf73e8d5eb10b463026ec52c1 /src/fileio.c
parentccb1d39acef811b9d392a4b1c0f577a81ce32b76 (diff)
downloademacs-eb15aa1822623116d37b654465b55c56ffe6663d.tar.gz
(a_write): Loop while *ANNOT is listp, not consp. Previous code omitted
all data from output files when *ANNOT was nil.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 0a04f713d7b..1446eaf4033 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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)