Check-in Number:
|
2651 | |
Date: |
2002-Oct-23 15:59:30 (local)
2002-Oct-23 13:59:30 (UTC) |
User: | mlelstv |
Branch: | |
Comment: |
seeking backwards to EOF position is obviously ok as well
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: |
Tickets: |
|
Inspections: |
|
Files: |
|
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;
|
|