subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1337382 - /subversion/trunk/subversion/libsvn_ra_serf/property.c
Date Fri, 11 May 2012 21:26:08 GMT
Author: gstein
Date: Fri May 11 21:26:08 2012
New Revision: 1337382

URL: http://svn.apache.org/viewvc?rev=1337382&view=rev
Log:
Fix incorrect variable usage.

Found by: danielsh

* subversion/libsvn_ra_serf/property.c:
  (get_baseline_info): use *REVNUM_USED rather than improper
    ACTUAL_REVISION localvar

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

Modified: subversion/trunk/subversion/libsvn_ra_serf/property.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/property.c?rev=1337382&r1=1337381&r2=1337382&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/property.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/property.c Fri May 11 21:26:08 2012
@@ -1088,8 +1088,6 @@ get_baseline_info(const char **bc_url,
      revision (if needed) with an OPTIONS request.  */
   if (SVN_RA_SERF__HAVE_HTTPV2_SUPPORT(session))
     {
-      svn_revnum_t actual_revision;
-
       if (SVN_IS_VALID_REVNUM(revision))
         {
           *revnum_used = revision;
@@ -1098,7 +1096,7 @@ get_baseline_info(const char **bc_url,
         {
           SVN_ERR(svn_ra_serf__v2_get_youngest_revnum(
                     revnum_used, conn, pool));
-          if (! SVN_IS_VALID_REVNUM(actual_revision))
+          if (! SVN_IS_VALID_REVNUM(*revnum_used))
             return svn_error_create(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED, NULL,
                                     _("The OPTIONS response did not include "
                                       "the youngest revision"));



Mime
View raw message