[gnome-keyring] gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx()



commit 0f83a210c4d7b16fbcf74ed2e521bef969808672
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 bec7e50..66668a0 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]