subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1563991 - /subversion/trunk/subversion/libsvn_ra_serf/update.c
Date Mon, 03 Feb 2014 18:07:56 GMT
Author: breser
Date: Mon Feb  3 18:07:55 2014
New Revision: 1563991

URL: http://svn.apache.org/r1563991
Log:
Fix a compiler warning by removing some pointless code.

* subversion/libsvn_ra_serf/update.c
  (body_allocate_all): Remove test for sz >= 0, apr_size_t is not signed so it
    will always be true.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/update.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1563991&r1=1563990&r2=1563991&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Mon Feb  3 18:07:55 2014
@@ -482,7 +482,7 @@ body_allocate_all(body_create_baton_t *b
         break;
     }
 
-  if (!SERF_BUCKET_READ_ERROR(s) && sz >= 0)
+  if (!SERF_BUCKET_READ_ERROR(s))
     {
       memcpy(next, data, sz);
     }



Mime
View raw message