2006-05-17 [colin] 2.2.0cvs29
[claws.git] / src / mimeview.c
index a958d6044f960ed3315c85888288f7e166bc56bb..f577c6e4828becac236d7cc4adce2c35f70b656d 100644 (file)
@@ -1292,6 +1292,10 @@ static void mimeview_drag_data_get(GtkWidget         *widget,
 
        tmp = g_filename_from_utf8(filename, -1, NULL, NULL, NULL);
        
+       if (tmp == NULL) {
+               g_warning("filename not in UTF-8");
+               tmp = g_strdup("Unnamed part");
+       }
        filename = g_strconcat(get_mime_tmp_dir(), G_DIR_SEPARATOR_S,
                               tmp, NULL);