зеркало из https://github.com/microsoft/git.git
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:
Родитель
e9854a7672
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче