changeset 51544:a0c2b39160e9

(shrink_regexp_cache): Use xrealloc. (syms_of_search): Use xmalloc.
author Dave Love <fx@gnu.org>
date Wed, 11 Jun 2003 11:43:39 +0000
parents 38c9480b767a
children 75844077a68b
files src/search.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Wed Jun 11 04:00:33 2003 +0000
+++ b/src/search.c	Wed Jun 11 11:43:39 2003 +0000
@@ -183,7 +183,7 @@
     {
       cp->buf.allocated = cp->buf.used;
       cp->buf.buffer
-	= (unsigned char *) realloc (cp->buf.buffer, cp->buf.used);
+	= (unsigned char *) xrealloc (cp->buf.buffer, cp->buf.used);
     }
 }
 
@@ -2901,7 +2901,7 @@
   for (i = 0; i < REGEXP_CACHE_SIZE; ++i)
     {
       searchbufs[i].buf.allocated = 100;
-      searchbufs[i].buf.buffer = (unsigned char *) malloc (100);
+      searchbufs[i].buf.buffer = (unsigned char *) xmalloc (100);
       searchbufs[i].buf.fastmap = searchbufs[i].fastmap;
       searchbufs[i].regexp = Qnil;
       staticpro (&searchbufs[i].regexp);