* add NULL check to modest_maemo_utils_folder_writable as it *always* seemed
to crash in my sbox
pmo-trunk-r2673
gboolean
modest_maemo_utils_folder_writable (const gchar *filename)
{
gboolean
modest_maemo_utils_folder_writable (const gchar *filename)
{
+ g_return_val_if_fail (filename, FALSE);
+
+ if (!filename)
+ return FALSE;
+
if (g_strncasecmp (filename, "obex", 4) != 0) {
GnomeVFSFileInfo folder_info;
gchar *folder;
if (g_strncasecmp (filename, "obex", 4) != 0) {
GnomeVFSFileInfo folder_info;
gchar *folder;
GnomeVFSHandle *handle;
TnyStream *stream;
GnomeVFSHandle *handle;
TnyStream *stream;
- hildon_banner_show_information (NULL, NULL, _("mail_ib_saving_mime_part"));
+ hildon_banner_show_information (NULL, NULL,
+ _CS("sfil_ib_saving"));
result = gnome_vfs_create (&handle, filename, GNOME_VFS_OPEN_WRITE, FALSE, 0777);
if (result != GNOME_VFS_OK) {
hildon_banner_show_information (NULL, NULL, _("mail_ib_file_operation_failed"));
result = gnome_vfs_create (&handle, filename, GNOME_VFS_OPEN_WRITE, FALSE, 0777);
if (result != GNOME_VFS_OK) {
hildon_banner_show_information (NULL, NULL, _("mail_ib_file_operation_failed"));