Skip to content

Commit d0f19d0

Browse files
drafnelgitster
authored andcommitted
revision.c: use proper data type in call to sizeof() within xrealloc
A type char** was being used instead of char*. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e9854a7 commit d0f19d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

revision.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name)
968968
int num = ++revs->num_ignore_packed;
969969

970970
revs->ignore_packed = xrealloc(revs->ignore_packed,
971-
sizeof(const char **) * (num + 1));
971+
sizeof(const char *) * (num + 1));
972972
revs->ignore_packed[num-1] = name;
973973
revs->ignore_packed[num] = NULL;
974974
}

0 commit comments

Comments
 (0)