OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/al.c versions 1.29 and 1.30
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/al.c 1.29 -> 1.30

--- al.c 2002/10/22 15:33:16     1.29
+++ al.c 2002/10/23 13:59:30     1.30
@@ -354,6 +354,12 @@
     } else {
         /* reverse search */
         pos  = al->bytes;
+        /* seek to EOF position is ok */
+        if (pos == off) {
+            *alcp  = NULL;
+            *skipp = 0;
+            return AL_OK;
+        }
         FOREACHR(al,chunks,cur) {
             chunksize = AL_CHUNK_LEN(cur);
             end  = pos;

CVSTrac 2.0.1