[gnome-keyring/gnome-3-0] gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx()
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/gnome-3-0] gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx()
- Date: Tue, 5 Apr 2011 10:10:24 +0000 (UTC)
commit f8a5d4161fbba864b8ccb631f14e61bfe83315a5
Author: Stef Walter <stefw collabora co uk>
Date: Thu Mar 31 09:09:44 2011 +0200
gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx()
gcr/gcr-parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcr/gcr-parser.c b/gcr/gcr-parser.c
index bee33c5..3953ffe 100644
--- a/gcr/gcr-parser.c
+++ b/gcr/gcr-parser.c
@@ -1780,7 +1780,7 @@ state_parse_buffer (GcrParsing *self, gboolean async)
static void
complete_read_buffer (GcrParsing *self, gssize count, GError *error)
{
- g_assert (GCR_IS_IMPORTER (self));
+ g_assert (GCR_IS_PARSING (self));
g_assert (self->buffer);
/* A failure */
@@ -1820,7 +1820,7 @@ state_read_buffer (GcrParsing *self, gboolean async)
gssize count;
gsize at;
- g_assert (GCR_IS_IMPORTER (self));
+ g_assert (GCR_IS_PARSING (self));
g_assert (G_IS_INPUT_STREAM (self->input));
if (!self->buffer)
@@ -1940,7 +1940,7 @@ gcr_parser_parse_stream_async (GcrParser *self, GInputStream *input, GCancellabl
GcrParsing *parsing;
g_return_if_fail (GCR_IS_PARSER (self));
- g_return_if_fail (G_IS_INPUT_STREAM (self));
+ g_return_if_fail (G_IS_INPUT_STREAM (input));
parsing = gcr_parsing_new (self, input, cancel);
parsing->async = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]