You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/10/26 17:53:07 UTC

svn commit: r1027601 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

Author: hwright
Date: Tue Oct 26 15:53:07 2010
New Revision: 1027601

URL: http://svn.apache.org/viewvc?rev=1027601&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
  (svn_wc__db_read_children_info): Follow our convention of using
    sizeof(*varname) to allocate memory.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1027601&r1=1027600&r2=1027601&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Tue Oct 26 15:53:07 2010
@@ -4932,8 +4932,7 @@ svn_wc__db_read_children_info(apr_hash_t
         new_child = FALSE;
       else
         {
-          child = apr_palloc(result_pool,
-                             sizeof(struct svn_wc__db_info_t) + sizeof(int));
+          child = apr_palloc(result_pool, sizeof(*child) + sizeof(*op_depth));
           new_child = TRUE;
         }