Mercurial > emacs
changeset 100104:6ab80abea3ee
(scan_lisp_file): Use xmalloc instead of malloc.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 01 Dec 2008 20:29:02 +0000 |
parents | c2ef1c8b2d64 |
children | 6a89ada37b53 |
files | lib-src/ChangeLog lib-src/make-docfile.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Mon Dec 01 20:14:43 2008 +0000 +++ b/lib-src/ChangeLog Mon Dec 01 20:29:02 2008 +0000 @@ -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.
--- a/lib-src/make-docfile.c Mon Dec 01 20:14:43 2008 +0000 +++ b/lib-src/make-docfile.c Mon Dec 01 20:29:02 2008 +0000 @@ -909,7 +909,7 @@ /* 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 ^_.