Author: rhuijben
Date: Tue Mar 10 10:33:35 2015
New Revision: 1665452

URL: http://svn.apache.org/r1665452
Log:
In ra_serf: Don't report that the xml is malformed during replay if the
callback just decided that it doesn't need the actual data.

* subversion/libsvn_ra_serf/replay.c
  (replay_closed): Fix assumption that there is always a stream, because
    in a specific case we don't create one.

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

Modified: subversion/trunk/subversion/libsvn_ra_serf/replay.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/replay.c?rev=1665452&r1=1665451&r2=1665452&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/replay.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/replay.c Tue Mar 10 10:33:35 2015
@@ -427,10 +427,11 @@ replay_closed(svn_ra_serf__xml_estate_t
     {
       struct replay_node_t *node = ctx->current_node;
 
-      if (! node || ! node->file || ! node->stream)
+      if (! node || ! node->file)
         return svn_error_create(SVN_ERR_XML_MALFORMED, NULL, NULL);
 
-      SVN_ERR(svn_stream_close(node->stream));
+      if (node->stream)
+        SVN_ERR(svn_stream_close(node->stream));
 
       node->stream = NULL;
     }


Reply via email to