[evolution-data-server] imapx: camel_imapx_stream_astring() returns 0 on success.
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] imapx: camel_imapx_stream_astring() returns 0 on success.
- Date: Mon, 12 Jul 2010 03:12:47 +0000 (UTC)
commit 6108228eafb663803222d2dbc63f7f9303184fcd
Author: David Woodhouse <David Woodhouse intel com>
Date: Mon Jul 12 04:11:38 2010 +0100
imapx: camel_imapx_stream_astring() returns 0 on success.
camel/providers/imapx/camel-imapx-utils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index dd65099..dd27f98 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -869,11 +869,11 @@ imapx_parse_body_fields(CamelIMAPXStream *is, GError **error)
cinfo = g_malloc0(sizeof(*cinfo));
/* this should be string not astring */
- if (!camel_imapx_stream_astring(is, &token, error))
+ if (camel_imapx_stream_astring(is, &token, error))
goto error;
type = alloca(strlen( (gchar *) token)+1);
strcpy(type, (gchar *) token);
- if (!camel_imapx_stream_astring(is, &token, error))
+ if (camel_imapx_stream_astring(is, &token, error))
goto error;
cinfo->type = camel_content_type_new(type, (gchar *) token);
if (!imapx_parse_param_list(is, &cinfo->type->params, error))
@@ -891,7 +891,7 @@ imapx_parse_body_fields(CamelIMAPXStream *is, GError **error)
/* body_fld_enc ::= (<"> ("7BIT" / "8BIT" / "BINARY" / "BASE64"/
"QUOTED-PRINTABLE") <">) / string */
- if (!camel_imapx_stream_astring(is, &token, error))
+ if (camel_imapx_stream_astring(is, &token, error))
goto error;
cinfo->encoding = g_strdup((gchar *) token);
@@ -1548,7 +1548,7 @@ imapx_parse_status_info (struct _CamelIMAPXStream *is, GError **error)
sinfo = g_malloc0 (sizeof(*sinfo));
/* skip the folder name */
- if (!camel_imapx_stream_astring (is, &token, error)) {
+ if (camel_imapx_stream_astring (is, &token, error)) {
g_free (sinfo);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]