summaryrefslogtreecommitdiff
path: root/subversion/libsvn_ra_serf/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_ra_serf/log.c')
-rw-r--r--subversion/libsvn_ra_serf/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subversion/libsvn_ra_serf/log.c b/subversion/libsvn_ra_serf/log.c
index 58a57d890ee42..02f2f2995e5fc 100644
--- a/subversion/libsvn_ra_serf/log.c
+++ b/subversion/libsvn_ra_serf/log.c
@@ -571,7 +571,7 @@ svn_ra_serf__get_log(svn_ra_session_t *ra_session,
/* At this point, we may have a deleted file. So, we'll match ra_neon's
* behavior and use the larger of start or end as our 'peg' rev.
*/
- peg_rev = (start > end) ? start : end;
+ peg_rev = (start == SVN_INVALID_REVNUM || start > end) ? start : end;
SVN_ERR(svn_ra_serf__get_stable_url(&req_url, NULL /* latest_revnum */,
session, NULL /* conn */,