subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1352044 - /subversion/trunk/subversion/libsvn_ra_serf/update.c
Date Wed, 20 Jun 2012 11:08:46 GMT
Author: gstein
Date: Wed Jun 20 11:08:45 2012
New Revision: 1352044

URL: http://svn.apache.org/viewvc?rev=1352044&view=rev
Log:
Followup to r1350584: a missing sha1-checksum property can also be the
empty string (e.g. <S:sha1-checksum/>)

* subversion/libsvn_ra_serf/update.c:
  (try_get_wc_contents): look for both missing and empty string on the
    sha1-checksum property

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=1352044&r1=1352043&r2=1352044&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Wed Jun 20 11:08:45 2012
@@ -2874,9 +2874,9 @@ try_get_wc_contents(svn_boolean_t *found
 
   sha1_checksum_prop = svn_prop_get_value(svn_props, "sha1-checksum");
 
-  if (!sha1_checksum_prop)
+  if (sha1_checksum_prop == NULL || *sha1_checksum_prop == '\0')
     {
-      /* No checksum property in response. */
+      /* No checksum property in response (missing or empty string).  */
       return SVN_NO_ERROR;
     }
 



Mime
View raw message