diff options
Diffstat (limited to 'subversion/libsvn_repos/dump.c')
-rw-r--r-- | subversion/libsvn_repos/dump.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/subversion/libsvn_repos/dump.c b/subversion/libsvn_repos/dump.c index 78cd78bebc99b..189d724cd2dea 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 */ |