summaryrefslogtreecommitdiff
path: root/subversion/libsvn_repos/dump.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2017-08-10 21:48:34 +0000
committerPeter Wemm <peter@FreeBSD.org>2017-08-10 21:48:34 +0000
commita55fb3c0d5eca7d887798125d5b95942b1f01d4b (patch)
treeac93b49309d9d1a772298a551fc58116a1ccefad /subversion/libsvn_repos/dump.c
parent608944fa5a78d7f517c9c73a7ded6c130cc97b83 (diff)
Diffstat (limited to 'subversion/libsvn_repos/dump.c')
-rw-r--r--subversion/libsvn_repos/dump.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/subversion/libsvn_repos/dump.c b/subversion/libsvn_repos/dump.c
index 78cd78bebc99..189d724cd2de 100644
--- a/subversion/libsvn_repos/dump.c
+++ b/subversion/libsvn_repos/dump.c
@@ -546,11 +546,15 @@ svn_repos__dump_revision_record(svn_stream_t *dump_stream,
"%" APR_SIZE_T_FMT, propstring->len));
}
- /* Write out a regular Content-length header for the benefit of
- non-Subversion RFC-822 parsers. */
- svn_hash_sets(headers, SVN_REPOS_DUMPFILE_CONTENT_LENGTH,
- apr_psprintf(scratch_pool,
- "%" APR_SIZE_T_FMT, propstring->len));
+ if (propstring)
+ {
+ /* Write out a regular Content-length header for the benefit of
+ non-Subversion RFC-822 parsers. */
+ svn_hash_sets(headers, SVN_REPOS_DUMPFILE_CONTENT_LENGTH,
+ apr_psprintf(scratch_pool,
+ "%" APR_SIZE_T_FMT, propstring->len));
+ }
+
SVN_ERR(write_revision_headers(dump_stream, headers, scratch_pool));
/* End of headers */