From 0d78f798da6974a4e8d7c591f105438beb4015a2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 3 Nov 2000 22:58:29 +0000 Subject: oops, return NULL not void svn path=/trunk/; revision=6385 --- composer/e-msg-composer-attachment.c | 4 ++-- 1 file 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) -- cgit v1.2.3