diff options
| author | Joakim Verona | 2015-01-22 08:27:13 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-22 08:27:13 +0100 |
| commit | 5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315 (patch) | |
| tree | c9e3511c8164d2154c91820e0d90521762dc7bdf /src/eval.c | |
| parent | d6ada5ae0fad7a5c85eb28b102bc460e9fe0aceb (diff) | |
| parent | 7f4e7dd378c456b498c270b47b46aaae365a72ab (diff) | |
| download | emacs-5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315.tar.gz emacs-5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315.zip | |
merge master
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index ddf6535cabc..e649c152a5d 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2299,7 +2299,8 @@ usage: (apply FUNCTION &rest ARGUMENTS) */) | |||
| 2299 | /* Avoid making funcall cons up a yet another new vector of arguments | 2299 | /* Avoid making funcall cons up a yet another new vector of arguments |
| 2300 | by explicitly supplying nil's for optional values. */ | 2300 | by explicitly supplying nil's for optional values. */ |
| 2301 | SAFE_ALLOCA_LISP (funcall_args, 1 + XSUBR (fun)->max_args); | 2301 | SAFE_ALLOCA_LISP (funcall_args, 1 + XSUBR (fun)->max_args); |
| 2302 | memsetnil (funcall_args + numargs + 1, XSUBR (fun)->max_args - numargs); | 2302 | memclear (funcall_args + numargs + 1, |
| 2303 | (XSUBR (fun)->max_args - numargs) * word_size); | ||
| 2303 | funcall_nargs = 1 + XSUBR (fun)->max_args; | 2304 | funcall_nargs = 1 + XSUBR (fun)->max_args; |
| 2304 | } | 2305 | } |
| 2305 | else | 2306 | else |
| @@ -2693,8 +2694,8 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 2693 | eassert (XSUBR (fun)->max_args <= ARRAYELTS (internal_argbuf)); | 2694 | eassert (XSUBR (fun)->max_args <= ARRAYELTS (internal_argbuf)); |
| 2694 | internal_args = internal_argbuf; | 2695 | internal_args = internal_argbuf; |
| 2695 | memcpy (internal_args, args + 1, numargs * word_size); | 2696 | memcpy (internal_args, args + 1, numargs * word_size); |
| 2696 | memsetnil (internal_args + numargs, | 2697 | memclear (internal_args + numargs, |
| 2697 | XSUBR (fun)->max_args - numargs); | 2698 | (XSUBR (fun)->max_args - numargs) * word_size); |
| 2698 | } | 2699 | } |
| 2699 | else | 2700 | else |
| 2700 | internal_args = args + 1; | 2701 | internal_args = args + 1; |