aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer-attachment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index bd9ae43b3b..b42631cda6 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -177,11 +177,11 @@ e_msg_composer_attachment_new (const gchar *file_name)
g_return_val_if_fail (file_name != NULL, NULL);
if (stat (file_name, &statbuf) < 0)
- return;
+ return NULL;
/* return if it's not a regular file */
if (!S_ISREG (statbuf.st_dev))
- return;
+ return NULL;
stream = camel_stream_fs_new_with_name (file_name, O_RDONLY, 0);
if (!stream)