* [PATCH] revision.c: use proper data type in call to sizeof() within xrealloc
@ 2008-11-13 20:20 Brandon Casey
2008-11-14 6:24 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Brandon Casey @ 2008-11-13 20:20 UTC (permalink / raw)
To: gitster; +Cc: git
A type char** was being used instead of char*.
---
Just a little typo, that doesn't make any difference but should be fixed.
-brandon
revision.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/revision.c b/revision.c
index 2f646de..440d152 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;
}
--
1.6.0.3.552.g12334
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-14 6:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 20:20 [PATCH] revision.c: use proper data type in call to sizeof() within xrealloc Brandon Casey
2008-11-14 6:24 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox