diff options
| author | Paul Eggert | 2015-01-21 20:01:10 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-01-21 20:03:34 -0800 |
| commit | 74244d239e9093035c369721b469529a5fdaf1c6 (patch) | |
| tree | 971d34cc4c4c1ba554ae7dc8faeb274fe413e3e3 /src/coding.c | |
| parent | 03346fb0747ddb39786bd9e43fe7f422cd48b9fe (diff) | |
| download | emacs-74244d239e9093035c369721b469529a5fdaf1c6.tar.gz emacs-74244d239e9093035c369721b469529a5fdaf1c6.zip | |
Better isolate code that assumes NIL_IS_ZERO
Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00588.html
* alloc.c (allocate_pseudovector):
Use memclear, not memsetnil, to remove a 'verify'.
* callint.c (Fcall_interactively):
* dispnew.c (realloc_glyph_pool):
* xdisp.c (init_iterator):
Use memclear, not memset, to remove a 'verify'.
* lisp.h (memclear): Rename from memsetnil, and take a byte
count rather than a word count. All callers changed.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index b95c0a5f825..43ebbe06856 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -11273,7 +11273,7 @@ internal character representation. */); | |||
| 11273 | 11273 | ||
| 11274 | { | 11274 | { |
| 11275 | Lisp_Object args[coding_arg_undecided_max]; | 11275 | Lisp_Object args[coding_arg_undecided_max]; |
| 11276 | memsetnil (args, ARRAYELTS (args)); | 11276 | memclear (args, sizeof args); |
| 11277 | 11277 | ||
| 11278 | Lisp_Object plist[16]; | 11278 | Lisp_Object plist[16]; |
| 11279 | plist[0] = intern_c_string (":name"); | 11279 | plist[0] = intern_c_string (":name"); |