Commit Diff
--- 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();