Commit Diff


commit - 8c4eabf2088807f8965d1fa049e59f4402a3732f
commit + 4229330be464eb3f99f05520e67edd1cb3cc1057
blob - 934b269244bf1905ef3050cd37b7a189852bc2c1
blob + 343a0f8599eef56421c1734b466437bf0377aa31
--- lib/worktree.c
+++ lib/worktree.c
@@ -2408,7 +2408,7 @@ alloc_added_blob_tree_entry(struct got_tree_entry **ne
 
 	 *new_te = NULL;
 
-	*new_te = calloc(1, sizeof(*new_te));
+	*new_te = calloc(1, sizeof(**new_te));
 	if (*new_te == NULL)
 		return got_error_from_errno();