[balsa/gtk3] Clear whole struct
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Clear whole struct
- Date: Mon, 16 Jul 2012 01:52:16 +0000 (UTC)
commit e310f3a5c5a4630ad23a2e6c127c806b49f96e80
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 15 20:32:40 2012 -0400
Clear whole struct
* libbalsa/imap/imap_compress.c (imap_compress_init): memset
size of struct, not size of pointer to struct.
ChangeLog | 5 +++++
libbalsa/imap/imap_compress.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a6336e5..f6aeff7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-07-15 Peter Bloomfield
+ * libbalsa/imap/imap_compress.c (imap_compress_init): memset
+ size of struct, not size of pointer to struct.
+
+2012-07-15 Peter Bloomfield
+
* src/balsa-mime-widget-text.c (structured_phrases_toggle):
typo.
diff --git a/libbalsa/imap/imap_compress.c b/libbalsa/imap/imap_compress.c
index 50638a7..28a3fbe 100644
--- a/libbalsa/imap/imap_compress.c
+++ b/libbalsa/imap/imap_compress.c
@@ -152,7 +152,7 @@ imap_compress(ImapMboxHandle *handle)
void
imap_compress_init(struct ImapCompressContext *buf)
{
- memset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(struct ImapCompressContext));
}
/** releases any data that might have been allocated by compression routines. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]