diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-06-15 21:36:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-15 21:36:34 +0800 |
commit | 76f1b233865609c008e320a7e037be8cf64b48b7 (patch) | |
tree | 017e26f65a2597809c14e3b1b3dd2ec73e380040 /camel/providers/imap4/camel-imap4-stream.h | |
parent | 4446fafb69e60a99df4c7b2f3788e6df5f24d778 (diff) | |
download | gsoc2013-evolution-76f1b233865609c008e320a7e037be8cf64b48b7.tar.gz gsoc2013-evolution-76f1b233865609c008e320a7e037be8cf64b48b7.tar.zst gsoc2013-evolution-76f1b233865609c008e320a7e037be8cf64b48b7.zip |
Init have_unget to FALSE. Don't set unget to NULL, it's no longer a
2004-06-15 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-stream.c (camel_imap4_stream_init):
Init have_unget to FALSE. Don't set unget to NULL, it's no longer
a pointer.
(camel_imap4_stream_finalize): No need to g_free() unget anymore.
(camel_imap4_stream_next_token): Check have_unget rather than
unget != NULL. Set have_unget to FALSE if we get an unget'd token.
(camel_imap4_stream_unget_token): Don't malloc space for an unget
token. The unget token is no longer a pointer.
svn path=/trunk/; revision=26346
Diffstat (limited to 'camel/providers/imap4/camel-imap4-stream.h')
-rw-r--r-- | camel/providers/imap4/camel-imap4-stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/imap4/camel-imap4-stream.h b/camel/providers/imap4/camel-imap4-stream.h index 7ef8422008..c0f870a0bd 100644 --- a/camel/providers/imap4/camel-imap4-stream.h +++ b/camel/providers/imap4/camel-imap4-stream.h @@ -80,6 +80,7 @@ struct _CamelIMAP4Stream { CamelStream *stream; guint disconnected:1; /* disconnected state */ + guint have_unget:1; /* have an unget token */ guint mode:1; /* TOKEN vs LITERAL */ guint eol:1; /* end-of-literal */ @@ -96,7 +97,7 @@ struct _CamelIMAP4Stream { unsigned char *tokenptr; unsigned int tokenleft; - camel_imap4_token_t *unget; + camel_imap4_token_t unget; }; struct _CamelIMAP4StreamClass { |