Commit d0f19d04 authored by Brandon Casey's avatar Brandon Casey Committed by Junio C Hamano

revision.c: use proper data type in call to sizeof() within xrealloc

A type char** was being used instead of char*.
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent e9854a76
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment