diff options
| author | Richard M. Stallman | 2006-04-29 18:52:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-04-29 18:52:23 +0000 |
| commit | 2ef88a94ea6a99d154bba3123bb2aba09767ef55 (patch) | |
| tree | 05f4a798ecaea3f4bd37c6c74e63ed877c2945e5 /lib-src | |
| parent | 41c8e348f2362ff04d14d9781b02b3f72571e4bf (diff) | |
| download | emacs-2ef88a94ea6a99d154bba3123bb2aba09767ef55.tar.gz emacs-2ef88a94ea6a99d154bba3123bb2aba09767ef55.zip | |
(read_header): Give fatal error if input has no header.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a38c0cb6770..31f69a5bcd9 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-04-29 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * fakemail.c (read_header): Give fatal error if input has no header. | ||
| 4 | |||
| 1 | 2006-04-02 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2006-04-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | * b2m.c (main): Don't include <limits.h>. | 7 | * b2m.c (main): Don't include <limits.h>. |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 6b8634f34ab..30d39db533e 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -694,6 +694,8 @@ read_header () | |||
| 694 | 694 | ||
| 695 | } while (true); | 695 | } while (true); |
| 696 | 696 | ||
| 697 | if (! the_header) | ||
| 698 | fatal ("input message has no header"); | ||
| 697 | return the_header->next; | 699 | return the_header->next; |
| 698 | } | 700 | } |
| 699 | 701 | ||