OSSP CVS Repository

ossp - Check-in [2668]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2668
Date: 2002-Oct-25 17:27:29 (local)
2002-Oct-25 15:27:29 (UTC)
User:rse
Branch:
Comment: Fix error processing logic in sa_read().

Submitted by: Ulrich Dessauer <udessauer@agnitas.de>

Tickets:
Inspections:
Files:
ossp-pkg/sa/sa.c      1.59 -> 1.60     1 inserted, 1 deleted

ossp-pkg/sa/sa.c 1.59 -> 1.60

--- sa.c 2002/10/11 15:27:39     1.59
+++ sa.c 2002/10/25 15:27:29     1.60
@@ -1688,7 +1688,7 @@
                     else if (n < 0)
                         /* error on this read, but perhaps ok as a whole */
                         rv = (res == 0 ? SA_ERR_SYS : SA_OK);
-                    if (n == 0)
+                    else if (n == 0)
                         /* EOF on this read, but perhaps ok as a whole */
                         rv = (res == 0 ? SA_ERR_EOF : SA_OK);
                     else {

CVSTrac 2.0.1