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>
This commit is contained in:
parent
e9854a7672
commit
d0f19d0471
@ -968,7 +968,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name)
|
||||
int num = ++revs->num_ignore_packed;
|
||||
|
||||
revs->ignore_packed = xrealloc(revs->ignore_packed,
|
||||
sizeof(const char **) * (num + 1));
|
||||
sizeof(const char *) * (num + 1));
|
||||
revs->ignore_packed[num-1] = name;
|
||||
revs->ignore_packed[num] = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user