subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1337787 - /subversion/trunk/subversion/libsvn_subr/lock.c
Date Sun, 13 May 2012 06:40:22 GMT
Author: gstein
Date: Sun May 13 06:40:22 2012
New Revision: 1337787

URL: http://svn.apache.org/viewvc?rev=1337787&view=rev
Log:
Minor simplification.

* subversion/libsvn_subr/lock.c:
  (svn_lock_dup): apr_pstrdup() handles NULL. no need to test first.

Modified:
    subversion/trunk/subversion/libsvn_subr/lock.c

Modified: subversion/trunk/subversion/libsvn_subr/lock.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/lock.c?rev=1337787&r1=1337786&r2=1337787&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/lock.c (original)
+++ subversion/trunk/subversion/libsvn_subr/lock.c Sun May 13 06:40:22 2012
@@ -54,8 +54,7 @@ svn_lock_dup(const svn_lock_t *lock, apr
   new_l->path = apr_pstrdup(pool, new_l->path);
   new_l->token = apr_pstrdup(pool, new_l->token);
   new_l->owner = apr_pstrdup(pool, new_l->owner);
-  if (new_l->comment)
-    new_l->comment = apr_pstrdup(pool, new_l->comment);
+  new_l->comment = apr_pstrdup(pool, new_l->comment);
 
   return new_l;
 }



Mime
View raw message