diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-05-07 15:18:13 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-05-07 15:18:13 -0600 |
commit | 0335b8141b4ab35a94a8f1653a86defcd6768012 (patch) | |
tree | fe67f8473863bfe5bb0e5e0bb1aff260e3f64171 /libdimension/prtree.c | |
parent | 5c983b1907b46be33357817c082257a059ca4c41 (diff) | |
download | dimension-0335b8141b4ab35a94a8f1653a86defcd6768012.tar.xz |
Fix argument to malloc().
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r-- | libdimension/prtree.c | 2 |
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); |