summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-05-07 15:18:13 -0600
committerTavian Barnes <tavianator@gmail.com>2010-05-07 15:18:13 -0600
commit0335b8141b4ab35a94a8f1653a86defcd6768012 (patch)
treefe67f8473863bfe5bb0e5e0bb1aff260e3f64171 /libdimension/prtree.c
parent5c983b1907b46be33357817c082257a059ca4c41 (diff)
downloaddimension-0335b8141b4ab35a94a8f1653a86defcd6768012.tar.xz
Fix argument to malloc().
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index f5ce68f..cb09b84 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -482,7 +482,7 @@ dmnsn_new_prtree(const dmnsn_array *objects)
dmnsn_delete_pseudo_prtree(pseudo);
}
- dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree *));
+ dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree));
dmnsn_list_get(dmnsn_list_first(leaves), &prtree->root);
prtree->unbounded = dmnsn_array_from_list(unbounded);