aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-11-13 14:20:37 -0600
committerJunio C Hamano <gitster@pobox.com>2008-11-14 21:41:19 -0800
commitd0f19d0471792ace6d440c2789ce42227f07e69e (patch)
tree0572436954b60766924a11758105173cfefe9352
parente9854a767208776f4745922945f0982ef5caab66 (diff)
downloadgit-d0f19d0471792ace6d440c2789ce42227f07e69e.tar.gz
git-d0f19d0471792ace6d440c2789ce42227f07e69e.tar.xz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 270294af8..45fd7a366 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;
}