diff options
| author | Dan Nicolaescu | 2008-12-01 20:29:02 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-12-01 20:29:02 +0000 |
| commit | 938ebc4fcd152bb7c1c1fc0e6bdc1a8199ed460d (patch) | |
| tree | 510c3d089865b35024df4a836fe5519740529bc6 /lib-src/make-docfile.c | |
| parent | c115043bf3719eb7ed98db71d833e3e211d5c709 (diff) | |
| download | emacs-938ebc4fcd152bb7c1c1fc0e6bdc1a8199ed460d.tar.gz emacs-938ebc4fcd152bb7c1c1fc0e6bdc1a8199ed460d.zip | |
(scan_lisp_file): Use xmalloc instead of malloc.
Diffstat (limited to 'lib-src/make-docfile.c')
| -rw-r--r-- | lib-src/make-docfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 909 | /* Read in the contents. */ | 909 | /* Read in the contents. */ |
| 910 | if (saved_string != 0) | 910 | if (saved_string != 0) |
| 911 | free (saved_string); | 911 | free (saved_string); |
| 912 | saved_string = (char *) malloc (length); | 912 | saved_string = (char *) xmalloc (length); |
| 913 | for (i = 0; i < length; i++) | 913 | for (i = 0; i < length; i++) |
| 914 | saved_string[i] = getc (infile); | 914 | saved_string[i] = getc (infile); |
| 915 | /* The last character is a ^_. | 915 | /* The last character is a ^_. |