aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-14 07:51:38 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-14 07:51:38 +0000
commit8db157d7a1a1fdc49dda5de5eff7bb29766a6009 (patch)
tree4fed0e2408b47c998f50e2099bf152777e2dbc4c /libsylph/procmime.c
parent83f33ced89fe26733eba9aa1fec7af674f6935f8 (diff)
made some warnings just debug messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@647 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r--libsylph/procmime.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c
index 7c2105b6..102f90ab 100644
--- a/libsylph/procmime.c
+++ b/libsylph/procmime.c
@@ -1004,10 +1004,17 @@ gchar *procmime_get_mime_type(const gchar *filename)
MimeType *mime_type;
const gchar *p;
gchar *ext;
+ static gboolean no_mime_type_table = FALSE;
+
+ if (no_mime_type_table)
+ return NULL;
if (!mime_type_table) {
mime_type_table = procmime_get_mime_type_table();
- if (!mime_type_table) return NULL;
+ if (!mime_type_table) {
+ no_mime_type_table = TRUE;
+ return NULL;
+ }
}
filename = g_basename(filename);
@@ -1052,7 +1059,7 @@ static GHashTable *procmime_get_mime_type_table(void)
mime_type_list = g_list_concat(mime_type_list, list);
if (!mime_type_list) {
- g_warning("mime.types not found\n");
+ debug_print("mime.types not found\n");
return NULL;
}
}