You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1999/10/21 21:00:21 UTC

cvs commit: apache-2.0/src/main buff.c

manoj       99/10/21 12:00:20

  Modified:    src/main buff.c
  Log:
  Fix an swap in the ?: operator's arguments in writev_it_all.
  
  Revision  Changes    Path
  1.9       +1 -1      apache-2.0/src/main/buff.c
  
  Index: buff.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/buff.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -d -u -r1.8 -r1.9
  --- buff.c	1999/10/20 19:35:24	1.8
  +++ buff.c	1999/10/21 19:00:18	1.9
  @@ -583,7 +583,7 @@
       while (i < nvec) {
   	rv = writev_with_errors(fb, vec + i, nvec - i);
   	if (rv < 0) {
  -	    return total ? -1 : total;
  +	    return total ? total : -1;
   	}
   	total += rv;
   	if (fb->flags & B_NONBLOCK) {