summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-01-21 20:01:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-01-21 20:03:34 -0800
commit74244d239e9093035c369721b469529a5fdaf1c6 (patch)
tree971d34cc4c4c1ba554ae7dc8faeb274fe413e3e3 /src/coding.c
parent03346fb0747ddb39786bd9e43fe7f422cd48b9fe (diff)
downloademacs-74244d239e9093035c369721b469529a5fdaf1c6.tar.gz
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.c2
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. */);
{
Lisp_Object args[coding_arg_undecided_max];
- memsetnil (args, ARRAYELTS (args));
+ memclear (args, sizeof args);
Lisp_Object plist[16];
plist[0] = intern_c_string (":name");