diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-11-13 14:20:37 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-14 21:41:19 -0800 |
commit | d0f19d0471792ace6d440c2789ce42227f07e69e (patch) | |
tree | 0572436954b60766924a11758105173cfefe9352 | |
parent | e9854a767208776f4745922945f0982ef5caab66 (diff) | |
download | git-d0f19d0471792ace6d440c2789ce42227f07e69e.tar.gz |
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>
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index 270294af83..45fd7a3660 100644 --- a/revision.c +++ b/revision.c @@ -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; } |