From 591856f9804f4923cae7fef3ac80f7121e10202f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 17 Apr 2001 02:08:30 +0000 Subject: don't use g_return's svn path=/trunk/; revision=9396 --- camel/camel-pgp-context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index d6a725458a..cd3a7bee18 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -144,8 +144,9 @@ camel_pgp_context_new (CamelSession *session, CamelPgpType type, const char *pat CamelPgpContext *context; g_return_val_if_fail (session != NULL, NULL); - g_return_val_if_fail (type != CAMEL_PGP_TYPE_NONE, NULL); - g_return_val_if_fail (path != NULL, NULL); + + if (type == CAMEL_PGP_TYPE_NONE || !path || !*path) + return NULL; context = CAMEL_PGP_CONTEXT (camel_object_new (CAMEL_PGP_CONTEXT_TYPE)); -- cgit v1.2.3