You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2011/11/01 15:43:29 UTC

svn commit: r1196026 - /subversion/branches/showing-merge-info/subversion/libsvn_client/url.c

Author: julianfoad
Date: Tue Nov  1 14:43:28 2011
New Revision: 1196026

URL: http://svn.apache.org/viewvc?rev=1196026&view=rev
Log:
On the 'showing-merge-info' branch: Implement the doc-string
promise that svn_client_peg_create() shall accept a null peg revision.

* subversion/libsvn_client/url.c
  (svn_client_peg_create): If peg_revision is NULL, don't try to
    dereference it but instead set revision kind 'unspecified'.

Modified:
    subversion/branches/showing-merge-info/subversion/libsvn_client/url.c

Modified: subversion/branches/showing-merge-info/subversion/libsvn_client/url.c
URL: http://svn.apache.org/viewvc/subversion/branches/showing-merge-info/subversion/libsvn_client/url.c?rev=1196026&r1=1196025&r2=1196026&view=diff
==============================================================================
--- subversion/branches/showing-merge-info/subversion/libsvn_client/url.c (original)
+++ subversion/branches/showing-merge-info/subversion/libsvn_client/url.c Tue Nov  1 14:43:28 2011
@@ -82,7 +82,10 @@ svn_client_peg_create(const char *path_o
   svn_client_peg_t *peg = apr_palloc(pool, sizeof(*peg));
 
   peg->path_or_url = apr_pstrdup(pool, path_or_url);
-  peg->peg_revision = *peg_revision;
+  if (peg_revision)
+    peg->peg_revision = *peg_revision;
+  else
+    peg->peg_revision.kind = svn_opt_revision_unspecified;
   return SVN_NO_ERROR;
 }