diff options
author | Matthew Loper <mloper@src.gnome.org> | 2000-07-27 05:02:08 +0800 |
---|---|---|
committer | Matthew Loper <mloper@src.gnome.org> | 2000-07-27 05:02:08 +0800 |
commit | ed21f552bbad288dd7963f859df11870509cbc27 (patch) | |
tree | 0ff5b6c36e0a8c6b0ebe336c020f7e0224314009 /camel/camel-mime-utils.c | |
parent | 490437a88464f7be839ae646970e3219b04b1562 (diff) | |
download | gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar.gz gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar.bz2 gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar.lz gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar.xz gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.tar.zst gsoc2013-evolution-ed21f552bbad288dd7963f859df11870509cbc27.zip |
Make the mime parser a bit less reckless. More reckful?
svn path=/trunk/; revision=4365
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 18c8aa2408..e6b7e0350b 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1747,7 +1747,7 @@ header_references_decode(const char *in) struct _header_references *head = NULL, *node; char *id, *word; - if (in == NULL) + if (in == NULL || in[0] == '\0') return NULL; while (*inptr) { @@ -1764,7 +1764,7 @@ header_references_decode(const char *in) word = header_decode_word(&inptr); if (word) g_free (word); - else + else if (*inptr != '\0') inptr++; /* Stupid mailer tricks */ } } |