[Xxvt-commit] CVS: xxvt util.c,1.8,1.9
Status: Pre-Alpha
Brought to you by:
nlevitt
|
From: Pierre-Paul L. <pp...@us...> - 2002-04-12 04:17:53
|
Update of /cvsroot/xxvt/xxvt
In directory usw-pr-cvs1:/tmp/cvs-serv32508
Modified Files:
util.c
Log Message:
removed calling of xxvt_malloc in xxvt_realloc.
If NULL is passed to realloc, it behaves like malloc.
The error mesg should be easier to diagnose this way.
Index: util.c
===================================================================
RCS file: /cvsroot/xxvt/xxvt/util.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- util.c 7 Mar 2002 03:48:33 -0000 1.8
+++ util.c 12 Apr 2002 04:17:50 -0000 1.9
@@ -61,13 +61,9 @@
{
register void *rv;
- if (ptr == NULL)
- return xxvt_malloc(size);
- else
- rv = realloc(ptr, size);
-
+ rv = realloc(ptr, size);
if (rv == NULL) {
- fprintf(stderr, "realloc(0x%p, %u) failed\n", ptr, (unsigned) size);
+ fprintf(stderr, "realloc(0x%p, %u) failed\n", ptr, (unsigned) size);
exit(EXIT_FAILURE);
}
|