git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] use xrealloc in help.c
@ 2007-03-27 22:30 James Bowes
  2007-03-27 22:40 ` Morten Welinder
  0 siblings, 1 reply; 3+ messages in thread
From: James Bowes @ 2007-03-27 22:30 UTC (permalink / raw)
  To: junkio; +Cc: git

Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
---
 help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/help.c b/help.c
index be8651a..34b1dda 100644
--- a/help.c
+++ b/help.c
@@ -54,7 +54,7 @@ static void add_cmdname(const char *name, int len)
 	struct cmdname *ent;
 	if (cmdname_alloc <= cmdname_cnt) {
 		cmdname_alloc = cmdname_alloc + 200;
-		cmdname = realloc(cmdname, cmdname_alloc * sizeof(*cmdname));
+		cmdname = xrealloc(cmdname, cmdname_alloc * sizeof(*cmdname));
 		if (!cmdname)
 			oom();
 	}
-- 
1.5.0.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-28  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 22:30 [PATCH] use xrealloc in help.c James Bowes
2007-03-27 22:40 ` Morten Welinder
2007-03-28  0:53   ` James Bowes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).