(scan_lisp_file): Use xmalloc instead of malloc.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 1 Dec 2008 20:29:02 +0000 (20:29 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 1 Dec 2008 20:29:02 +0000 (20:29 +0000)
lib-src/ChangeLog
lib-src/make-docfile.c

index 931aa2d..9584d66 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-01  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc.
+
 2008-11-22  Derek Peschel  <dpeschel@eskimo.com>  (tiny change)
 
        * etags.c (add_regex): Pass correct length to re_compile_pattern.
index 945a920..1cf63e3 100644 (file)
@@ -909,7 +909,7 @@ scan_lisp_file (filename, mode)
              /* Read in the contents.  */
              if (saved_string != 0)
                free (saved_string);
-             saved_string = (char *) malloc (length);
+             saved_string = (char *) xmalloc (length);
              for (i = 0; i < length; i++)
                saved_string[i] = getc (infile);
              /* The last character is a ^_.