From: Dan Nicolaescu Date: Mon, 1 Dec 2008 20:29:02 +0000 (+0000) Subject: (scan_lisp_file): Use xmalloc instead of malloc. X-Git-Tag: emacs-pretest-23.0.90~1380 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=938ebc4fcd152bb7c1c1fc0e6bdc1a8199ed460d;p=emacs.git (scan_lisp_file): Use xmalloc instead of malloc. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 931aa2d435e..9584d66ff56 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2008-12-01 Dan Nicolaescu + + * make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc. + 2008-11-22 Derek Peschel (tiny change) * etags.c (add_regex): Pass correct length to re_compile_pattern. diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 945a92076d2..1cf63e3ab31 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -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 ^_.