aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-09-13 07:30:17 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-09-13 07:30:17 +0000
commit089d0f37d1a353d7b03dbd12e3f257c910e5a627 (patch)
treeb307559daaace855cf608be50c93959e2588a313
parentb826872206f83b70591ae8f445e7f531b2d5ef58 (diff)
avoid uninitialized value.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1158 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog2
-rw-r--r--ChangeLog.ja2
-rw-r--r--libsylph/procmsg.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 71b4031e..894adfb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
error checking.
procmime_get_part_fp(): check the return value of
procmime_decode_content().
+ * libsylph/procmsg.c: procmsg_open_data_file(): avoid uninitialized
+ value.
2006-09-13
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 815eb1bc..2d2d346e 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -5,6 +5,8 @@
前にストリームを fflush() するようにした。
procmime_get_part_fp(): procmime_decode_content() の戻り値をチェック
するようにした。
+ * libsylph/procmsg.c: procmsg_open_data_file(): 未初期化の値を避ける
+ ようにした。
2006-09-13
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c
index 37546154..6d6b8bb2 100644
--- a/libsylph/procmsg.c
+++ b/libsylph/procmsg.c
@@ -798,7 +798,7 @@ FILE *procmsg_open_data_file(const gchar *file, guint version,
DataOpenMode mode, gchar *buf, size_t buf_size)
{
FILE *fp;
- guint32 data_ver;
+ guint32 data_ver = 0;
g_return_val_if_fail(file != NULL, NULL);