You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2012/05/13 08:40:22 UTC
svn commit: r1337787 - /subversion/trunk/subversion/libsvn_subr/lock.c
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;
}