diff options
| author | Paul Eggert | 2013-07-23 08:22:16 +0100 |
|---|---|---|
| committer | Paul Eggert | 2013-07-23 08:22:16 +0100 |
| commit | f274311c2cad468abbe4bdbb25362e2fe6ccb5c2 (patch) | |
| tree | 7268693504863b47ec342b5d63b95198382f142d /src/eval.c | |
| parent | a048c2955c000241dceba39112c3cb7c3d27b647 (diff) | |
| download | emacs-f274311c2cad468abbe4bdbb25362e2fe6ccb5c2.tar.gz emacs-f274311c2cad468abbe4bdbb25362e2fe6ccb5c2.zip | |
* eval.c (Fprogn): Check that BODY is a proper list.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 6cb2b7a92b8..e6ccf0bdcb5 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -454,6 +454,12 @@ usage: (progn BODY...) */) | |||
| 454 | body = XCDR (body); | 454 | body = XCDR (body); |
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | if (!NILP (body)) | ||
| 458 | { | ||
| 459 | /* This can happen if functions like Fcond are the caller. */ | ||
| 460 | wrong_type_argument (Qlistp, body); | ||
| 461 | } | ||
| 462 | |||
| 457 | UNGCPRO; | 463 | UNGCPRO; |
| 458 | return val; | 464 | return val; |
| 459 | } | 465 | } |