diff options
author | Not Zed <NotZed@Ximian.com> | 2002-09-30 13:06:51 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-09-30 13:06:51 +0800 |
commit | 1dcff68ce6ee20d604a1635d27a9cf443bdfcd0e (patch) | |
tree | d216d359a2da413f9b909f110fc3661989812e2b /camel/camel-folder-summary.c | |
parent | de6d72380316ca28b7f3b69fd1fdbab2bd6e0990 (diff) | |
download | gsoc2013-evolution-1dcff68ce6ee20d604a1635d27a9cf443bdfcd0e.tar.gz gsoc2013-evolution-1dcff68ce6ee20d604a1635d27a9cf443bdfcd0e.tar.zst gsoc2013-evolution-1dcff68ce6ee20d604a1635d27a9cf443bdfcd0e.zip |
Remove debug content_info_dump, could cause a crash, and not really needed
2002-09-30 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (imap_get_message): Remove
debug content_info_dump, could cause a crash, and not really
needed anymore.
* camel-folder-summary.c (camel_content_info_dump): Check ci->type
!= NULL before dereferencing it. Should fix crash #31331.
svn path=/trunk/; revision=18259
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 4eea17751a..09e75b10a5 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -2758,8 +2758,11 @@ camel_content_info_dump (CamelMessageContentInfo *ci, int depth) return; } - printf ("%scontent-type: %s/%s\n", p, ci->type->type ? ci->type->type : "(null)", - ci->type->subtype ? ci->type->subtype : "(null)"); + if (ci->type) + printf ("%scontent-type: %s/%s\n", p, ci->type->type ? ci->type->type : "(null)", + ci->type->subtype ? ci->type->subtype : "(null)"); + else + printf ("%scontent-type: <unset>\n", p); printf ("%scontent-transfer-encoding: %s\n", p, ci->encoding ? ci->encoding : "(null)"); printf ("%scontent-description: %s\n", p, ci->description ? ci->description : "(null)"); printf ("%ssize: %lu\n", p, (unsigned long) ci->size); |