aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-28 13:36:36 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-28 13:36:36 -0400
commitf059b5da4cca2ab4d374a1f3bca8499a5d399032 (patch)
treefb6b6044b478b068ef743502cd4cc72c0806984e
parentb9dc26454d9ab57a6bbd36762fae57783de908ac (diff)
calloc call backwards
-rw-r--r--strbst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strbst.c b/strbst.c
index 59d637e..d304605 100644
--- a/strbst.c
+++ b/strbst.c
@@ -14,7 +14,7 @@ int max(int a, int b) {
typedef char height;
strbst* newbst(void) {
- return calloc(sizeof(strbst),1);
+ return calloc(1,sizeof(strbst));
}
static strbstnode* newbstnode(char* ind, void* data) {