subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1613576 - /subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c
Date Sat, 26 Jul 2014 08:23:04 GMT
Author: julianfoad
Date: Sat Jul 26 08:23:03 2014
New Revision: 1613576

URL: http://svn.apache.org/r1613576
Log:
On the 'moves-tracking-2' branch:

* subversion/libsvn_delta/editor3.c
  (svn_editor3_node_content_create_*): Fix memory allocation.

Modified:
    subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c

Modified: subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c?rev=1613576&r1=1613575&r2=1613576&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c (original)
+++ subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c Sat Jul 26 08:23:03
2014
@@ -495,7 +495,7 @@ svn_editor3_node_content_create_ref(svn_
                                     apr_pool_t *result_pool)
 {
   svn_editor3_node_content_t *new_content
-    = apr_pcalloc(result_pool, sizeof(new_content));
+    = apr_pcalloc(result_pool, sizeof(*new_content));
 
   new_content->kind = svn_node_unknown;
   new_content->ref = ref;
@@ -508,7 +508,7 @@ svn_editor3_node_content_create_dir(svn_
                                     apr_pool_t *result_pool)
 {
   svn_editor3_node_content_t *new_content
-    = apr_pcalloc(result_pool, sizeof(new_content));
+    = apr_pcalloc(result_pool, sizeof(*new_content));
 
   new_content->kind = svn_node_dir;
   new_content->ref = ref;
@@ -524,7 +524,7 @@ svn_editor3_node_content_create_file(svn
                                      apr_pool_t *result_pool)
 {
   svn_editor3_node_content_t *new_content
-    = apr_pcalloc(result_pool, sizeof(new_content));
+    = apr_pcalloc(result_pool, sizeof(*new_content));
 
   new_content->kind = svn_node_file;
   new_content->ref = ref;
@@ -541,7 +541,7 @@ svn_editor3_node_content_create_symlink(
                                         apr_pool_t *result_pool)
 {
   svn_editor3_node_content_t *new_content
-    = apr_pcalloc(result_pool, sizeof(new_content));
+    = apr_pcalloc(result_pool, sizeof(*new_content));
 
   new_content->kind = svn_node_symlink;
   new_content->ref = ref;



Mime
View raw message